Skip to content

Commit

Permalink
Update crates/biome_js_analyze/src/lint/correctness/use_jsx_key_in_it…
Browse files Browse the repository at this point in the history
…erable.rs

Co-authored-by: Emanuele Stoppa <[email protected]>
  • Loading branch information
dyc3 and ematipico committed Jun 1, 2024
1 parent b3f9a2d commit 9f2def5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9f2def5

Please sign in to comment.