From 701411f56562b6dd0e708a7ebea2d48ff93985f2 Mon Sep 17 00:00:00 2001 From: Ethan Goh <7086cmd@gmail.com> Date: Wed, 2 Oct 2024 11:44:51 +0800 Subject: [PATCH] refactor: use `enter` instead of `exit` in expression. --- .../src/ast_passes/peephole_substitute_alternate_syntax.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/crates/oxc_minifier/src/ast_passes/peephole_substitute_alternate_syntax.rs b/crates/oxc_minifier/src/ast_passes/peephole_substitute_alternate_syntax.rs index ef288f787b086c..68e04e89bcf2fe 100644 --- a/crates/oxc_minifier/src/ast_passes/peephole_substitute_alternate_syntax.rs +++ b/crates/oxc_minifier/src/ast_passes/peephole_substitute_alternate_syntax.rs @@ -84,9 +84,6 @@ impl<'a> Traverse<'a> for PeepholeSubstituteAlternateSyntax { self.changed = true; } } - } - - fn exit_expression(&mut self, expr: &mut Expression<'a>, ctx: &mut TraverseCtx<'a>) { if !self.compress_undefined(expr, ctx) { self.compress_boolean(expr, ctx); }