diff --git a/crates/oxc_semantic/src/binder.rs b/crates/oxc_semantic/src/binder.rs index df49e6b98..f659b1dd9 100644 --- a/crates/oxc_semantic/src/binder.rs +++ b/crates/oxc_semantic/src/binder.rs @@ -207,12 +207,12 @@ impl<'a> Binder for FormalParameters<'a> { SymbolFlags::FunctionScopedVariableExcludes }; let is_signature = self.kind == FormalParameterKind::Signature; - self.bound_names(&mut |ident| { - if !is_signature { + if !is_signature { + self.bound_names(&mut |ident| { let symbol_id = builder.declare_symbol(ident.span, &ident.name, includes, excludes); ident.symbol_id.set(Some(symbol_id)); - } - }); + }); + } } }