Skip to content

Commit

Permalink
refactor(semantic): shorten code (#7277)
Browse files Browse the repository at this point in the history
Tiny refactor. No need for `matches!` here.
  • Loading branch information
overlookmotel authored and Dunqing committed Nov 18, 2024
1 parent cb7d3f7 commit 87cc792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_semantic/src/binder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ impl<'a> Binder<'a> for TSEnumMember<'a> {
impl<'a> Binder<'a> for TSModuleDeclaration<'a> {
fn bind(&self, builder: &mut SemanticBuilder) {
// do not bind `global` for `declare global { ... }`
if matches!(self.kind, TSModuleDeclarationKind::Global) {
if self.kind == TSModuleDeclarationKind::Global {
return;
}

Expand Down

0 comments on commit 87cc792

Please sign in to comment.