From 9f2def5f2d789cdded87f721e8e05a141fbef2c2 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Fri, 31 May 2024 20:04:02 -0400 Subject: [PATCH] Update crates/biome_js_analyze/src/lint/correctness/use_jsx_key_in_iterable.rs Co-authored-by: Emanuele Stoppa --- .../src/lint/correctness/use_jsx_key_in_iterable.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/biome_js_analyze/src/lint/correctness/use_jsx_key_in_iterable.rs b/crates/biome_js_analyze/src/lint/correctness/use_jsx_key_in_iterable.rs index 276baac0730e..821919f1f9f9 100644 --- a/crates/biome_js_analyze/src/lint/correctness/use_jsx_key_in_iterable.rs +++ b/crates/biome_js_analyze/src/lint/correctness/use_jsx_key_in_iterable.rs @@ -197,7 +197,7 @@ fn handle_function_body( returned_value.syntax().kind(), )) }) - .unwrap_or(false); + .unwrap_or_default(); let ranges = return_statement.and_then(|ret| { let returned_value = ret.argument()?; handle_potential_react_component(returned_value, model, is_inside_jsx)