From 3789d2faf96e56654ee1f24448a74129ef695eb2 Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Wed, 15 Jan 2025 23:46:38 +0000 Subject: [PATCH] style(linter/react-exhaustive-deps): fix indentation (#8520) --- crates/oxc_linter/src/rules/react/exhaustive_deps.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/oxc_linter/src/rules/react/exhaustive_deps.rs b/crates/oxc_linter/src/rules/react/exhaustive_deps.rs index 05581727c..2623ba264 100644 --- a/crates/oxc_linter/src/rules/react/exhaustive_deps.rs +++ b/crates/oxc_linter/src/rules/react/exhaustive_deps.rs @@ -56,9 +56,9 @@ fn unknown_dependencies_diagnostic(hook_name: &str, span: Span) -> OxcDiagnostic fn async_effect_diagnostic(span: Span) -> OxcDiagnostic { OxcDiagnostic::warn("Effect callbacks are synchronous to prevent race conditions.") - .with_label(span) - .with_help("Consider putting the asynchronous code inside a function and calling it from the effect.") - .with_error_code_scope(SCOPE) + .with_label(span) + .with_help("Consider putting the asynchronous code inside a function and calling it from the effect.") + .with_error_code_scope(SCOPE) } fn missing_dependency_diagnostic(hook_name: &str, deps: &[String], span: Span) -> OxcDiagnostic {