Skip to content

Commit

Permalink
fix(analyzer): False positive in rule noUndeclaredVariables #243
Browse files Browse the repository at this point in the history
  • Loading branch information
denbezrukov committed Sep 21, 2023
1 parent d148812 commit 2b65f68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/biome_js_semantic/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ impl SemanticEventExtractor {
);
}
_ => {
if let Some(node) = node.clone().cast::<AnyTsType>() {
if let Some(node) = AnyTsType::cast_ref(node) {
self.enter_any_type(&node);
}
}
Expand Down Expand Up @@ -595,7 +595,7 @@ impl SemanticEventExtractor {
self.pop_scope(node.text_range());
}
_ => {
if let Some(node) = node.clone().cast::<AnyTsType>() {
if let Some(node) = AnyTsType::cast_ref(node) {
self.leave_any_type(&node);
}
}
Expand Down

0 comments on commit 2b65f68

Please sign in to comment.