Skip to content

Commit b6bf3d1

Browse files
CopilotBrooooooklyn
andcommitted
fix(minifier): fix clippy warning for duplicate match arms
Co-authored-by: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com>
1 parent 6cd2ed6 commit b6bf3d1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

crates/oxc_minifier/src/peephole/remove_unused_expression.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -474,14 +474,6 @@ impl<'a> PeepholeOptimizations {
474474
Self::fold_string_addition_chain(e, ctx);
475475
matches!(e, Expression::StringLiteral(_))
476476
}
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),
485477
_ => !e.may_have_side_effects(ctx),
486478
}
487479
}

0 commit comments

Comments
 (0)