Skip to content

Commit

Permalink
Use continue instead of return
Browse files Browse the repository at this point in the history
  • Loading branch information
kaykdm authored and camc314 committed Jan 13, 2024
1 parent 799463f commit e860e1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/oxc_linter/src/rules/nextjs/no_typos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit e860e1d

Please sign in to comment.