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(),