Skip to content

Commit

Permalink
fixup! feat(linter): add jsx support for only-used-in-recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
no-yan committed Nov 5, 2024
1 parent df69f51 commit 14aa74c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/oxc_linter/src/rules/oxc/only_used_in_recursion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ fn is_argument_only_used_in_recursion<'a>(
.semantic()
.symbol_references(arg.symbol_id.get().expect("`symbol_id` should be set"))
.peekable();

// Avoid returning true for an empty iterator
if references.peek().is_none() {
return false;
Expand Down

0 comments on commit 14aa74c

Please sign in to comment.