Skip to content

Commit

Permalink
Undo useless changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hyf0 committed Dec 13, 2022
1 parent f5551fa commit be51c54
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/swc_ecma_transforms_base/src/fixer.rs
Expand Up @@ -157,7 +157,6 @@ impl VisitMut for Fixer<'_> {
let ctx = self.ctx;
self.ctx = Context::FreeExpr;
expr.right.visit_mut_with(self);

self.ctx = ctx;

fn rhs_need_paren(e: &Expr) -> bool {
Expand Down Expand Up @@ -469,7 +468,7 @@ impl VisitMut for Fixer<'_> {
e.visit_mut_children_with(self);

self.ctx = ctx;
self.wrap_with_paren_if_required(e);
self.wrap_with_paren_if_required(e)
}

fn visit_mut_expr_or_spread(&mut self, e: &mut ExprOrSpread) {
Expand Down

0 comments on commit be51c54

Please sign in to comment.