Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
baseballyama committed Jan 13, 2025
1 parent c3bdab0 commit cd187e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/eslint/no_lone_blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ fn mark_lone_block(parent_node: &AstNode, lone_blocks: &mut Vec<&AstNode>) {
return;
}

if lone_blocks.last().map_or(false, |last| last.id() == parent_node.id()) {
if lone_blocks.last().is_some_and(|last| last.id() == parent_node.id()) {
lone_blocks.pop();
}
}
Expand Down

0 comments on commit cd187e0

Please sign in to comment.