Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Jul 31, 2024
1 parent 727e9ab commit 770f180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/turbopack-ecmascript/src/analyzer/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1850,8 +1850,8 @@ impl VisitAstPath for Analyzer<'_> {
ast_path,
AstParentKind::IfStmt(IfStmtField::Test),
stmt.span(),
(!then.is_empty()).then(|| then),
r#else.and_then(|block| (!block.is_empty()).then(|| block)),
(!then.is_empty()).then_some(then),
r#else.and_then(|block| (!block.is_empty()).then_some(block)),
then_returning,
else_returning,
);
Expand Down

0 comments on commit 770f180

Please sign in to comment.