From e860e1d5ed4488f0275ac4431d6cdd816972396c Mon Sep 17 00:00:00 2001 From: kaykdm Date: Thu, 11 Jan 2024 22:03:09 +0900 Subject: [PATCH] Use continue instead of return --- crates/oxc_linter/src/rules/nextjs/no_typos.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/oxc_linter/src/rules/nextjs/no_typos.rs b/crates/oxc_linter/src/rules/nextjs/no_typos.rs index 2df1c0f8c5673..2346f925d0008 100644 --- a/crates/oxc_linter/src/rules/nextjs/no_typos.rs +++ b/crates/oxc_linter/src/rules/nextjs/no_typos.rs @@ -62,10 +62,10 @@ impl Rule for NoTypos { Declaration::VariableDeclaration(decl) => { for decl in &decl.declarations { let BindingPatternKind::BindingIdentifier(id) = &decl.id.kind else { - return; + continue; }; let Some(potential_typo) = get_potential_typo(&id.name) else { - return; + continue; }; ctx.diagnostic(NoTyposDiagnostic( id.name.to_string(),