Skip to content

Commit

Permalink
refactor(minifier): improve minimize_if_statement (oxc-project#9177)
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Feb 17, 2025
1 parent 51c4491 commit 3b1497b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/oxc_minifier/src/peephole/minimize_if_statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ impl<'a> PeepholeOptimizations {
);
if_stmt.consequent = ctx.ast.move_statement(stmt);
if_stmt.alternate = None;
self.try_minimize_if(if_stmt, ctx);
self.mark_current_function_as_changed();
}
}
Expand Down

0 comments on commit 3b1497b

Please sign in to comment.