Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored and sapphi-red committed Jan 17, 2025
1 parent dc3f38e commit b121148
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,10 @@ impl<'a> PeepholeReplaceKnownMethods {
// [].concat() or "".concat()
let is_root_expr_concat = {
let Expression::StaticMemberExpression(member) = callee else { unreachable!() };
matches!(&member.object, Expression::ArrayExpression(_) | Expression::StringLiteral(_))
matches!(
&member.object,
Expression::ArrayExpression(_) | Expression::StringLiteral(_)
)
};
if is_root_expr_concat {
new_root_callee = callee;
Expand Down

0 comments on commit b121148

Please sign in to comment.