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 d928b55 commit 914ce40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/eslint/curly.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ fn report_if_needed<'a>(
let needs_preceding_space = ctx
.nodes()
.parent_node(get_node_by_statement(body, ctx).id())
.map_or(false, |parent| matches!(parent.kind(), AstKind::DoWhileStatement(_)));
.is_some_and(|parent| matches!(parent.kind(), AstKind::DoWhileStatement(_)));
let mut fixed = ctx.source_range(body.span()).to_string();

if let Some(stripped) = fixed.strip_prefix(|c: char| c.is_whitespace() || c == '{') {
Expand Down

0 comments on commit 914ce40

Please sign in to comment.