Skip to content

Commit

Permalink
chore(semantic): use assert_eq! instead of assert! (`crates/oxc_s…
Browse files Browse the repository at this point in the history
…emantic/src/scope.rs`)
  • Loading branch information
baseballyama committed Dec 26, 2024
1 parent 777e13c commit 1c892ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_semantic/src/scope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ impl ScopeTree {
self.cell.with_dependent_mut(|_allocator, inner| {
let reference_ids = inner.root_unresolved_references.get_mut(name).unwrap();
if reference_ids.len() == 1 {
assert!(reference_ids[0] == reference_id);
assert_eq!(reference_ids[0], reference_id);
inner.root_unresolved_references.remove(name);
} else {
let index = reference_ids.iter().position(|&id| id == reference_id).unwrap();
Expand Down

0 comments on commit 1c892ae

Please sign in to comment.