Skip to content

Commit 38e97fe

Browse files
committed
fix(linter/exhaustive-deps): remove impossible comparison with parent kind
1 parent d90bebc commit 38e97fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/oxc_linter/src/rules/react/exhaustive_deps.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ fn is_stable_value<'a, 'b>(
10761076
.any(|reference| {
10771077
matches!(
10781078
ctx.nodes().parent_kind(reference.node_id()),
1079-
AstKind::IdentifierReference(_) | AstKind::AssignmentExpression(_)
1079+
AstKind::AssignmentExpression(_)
10801080
)
10811081
})
10821082
{

0 commit comments

Comments
 (0)