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 Nov 10, 2024
1 parent ef721fc commit 81612ea
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ impl<'a> PeepholeMinimizeConditions {
.to_boolean()
.is_none()
.then(|| {
if !matches!(if_stmt.alternate, None | Some(Statement::ExpressionStatement(_))) {
return None
if !matches!(if_stmt.alternate, None | Some(Statement::ExpressionStatement(_)))
{
return None;
}
// Make if (x) y; => x && y;
let (reverse, mut test) = match &mut if_stmt.test {
Expand Down

0 comments on commit 81612ea

Please sign in to comment.