From 155d9ea0fc90f90dc2709b36ceaf4b5af8b044a3 Mon Sep 17 00:00:00 2001 From: baseballyama Date: Sat, 28 Dec 2024 02:26:12 +0900 Subject: [PATCH] span() -> span --- crates/oxc_linter/src/rules/eslint/no_negated_condition.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/oxc_linter/src/rules/eslint/no_negated_condition.rs b/crates/oxc_linter/src/rules/eslint/no_negated_condition.rs index bc3938834427a..71c2cbc8b50e8 100644 --- a/crates/oxc_linter/src/rules/eslint/no_negated_condition.rs +++ b/crates/oxc_linter/src/rules/eslint/no_negated_condition.rs @@ -3,7 +3,7 @@ use oxc_ast::ast::{ConditionalExpression, Expression, IfStatement, Statement}; use oxc_ast::AstKind; use oxc_diagnostics::OxcDiagnostic; use oxc_macros::declare_oxc_lint; -use oxc_span::{GetSpan, Span}; +use oxc_span::Span; use oxc_syntax::operator::{BinaryOperator, UnaryOperator}; fn no_negated_condition_diagnostic(span: Span) -> OxcDiagnostic { @@ -56,12 +56,12 @@ impl Rule for NoNegatedCondition { } if is_negated_if(if_stmt) { - ctx.diagnostic(no_negated_condition_diagnostic(if_stmt.span())); + ctx.diagnostic(no_negated_condition_diagnostic(if_stmt.span)); } } AstKind::ConditionalExpression(conditional_expr) => { if is_negated_if_conditional(conditional_expr) { - ctx.diagnostic(no_negated_condition_diagnostic(conditional_expr.span())); + ctx.diagnostic(no_negated_condition_diagnostic(conditional_expr.span)); } } _ => {}