Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
baseballyama committed Dec 27, 2024
1 parent bd52e6e commit 51cc55f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/oxc_linter/src/rules/eslint/no_lone_blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,7 @@ impl Rule for NoLoneBlocks {
{
mark_lone_block(node, &mut lone_blocks);
}
Some(Declaration::ClassDeclaration(_)) => {
mark_lone_block(node, &mut lone_blocks);
}
Some(Declaration::FunctionDeclaration(_)) => {
Some(Declaration::ClassDeclaration(_) | Declaration::FunctionDeclaration(_)) => {
mark_lone_block(node, &mut lone_blocks);
}
_ => {}
Expand Down

0 comments on commit 51cc55f

Please sign in to comment.