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`) (#8128)

related to #8124
  • Loading branch information
baseballyama authored Dec 26, 2024
1 parent eb0f57f commit 04c7d38
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 04c7d38

Please sign in to comment.