diff --git a/crates/oxc_ast/src/ast_impl/js.rs b/crates/oxc_ast/src/ast_impl/js.rs index d6a47fbe6f418..d45871558e405 100644 --- a/crates/oxc_ast/src/ast_impl/js.rs +++ b/crates/oxc_ast/src/ast_impl/js.rs @@ -163,8 +163,8 @@ impl<'a> Expression<'a> { /// Remove nested parentheses from this expression. pub fn without_parentheses(&self) -> &Self { let mut expr = self; - while let Expression::ParenthesizedExpression(paran_expr) = expr { - expr = ¶n_expr.expression; + while let Expression::ParenthesizedExpression(paren_expr) = expr { + expr = &paren_expr.expression; } expr }