We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cd2ed6 commit b6bf3d1Copy full SHA for b6bf3d1
crates/oxc_minifier/src/peephole/remove_unused_expression.rs
@@ -474,14 +474,6 @@ impl<'a> PeepholeOptimizations {
474
Self::fold_string_addition_chain(e, ctx);
475
matches!(e, Expression::StringLiteral(_))
476
}
477
- BinaryOperator::Subtraction
478
- | BinaryOperator::Multiplication
479
- | BinaryOperator::Division
480
- | BinaryOperator::Remainder
481
- | BinaryOperator::Exponential
482
- | BinaryOperator::BitwiseAnd
483
- | BinaryOperator::BitwiseOR
484
- | BinaryOperator::BitwiseXOR => !e.may_have_side_effects(ctx),
485
_ => !e.may_have_side_effects(ctx),
486
487
0 commit comments