Skip to content

Commit bd49d01

Browse files
committed
ide: Remove unnecessary continue.
1 parent 8ee23f4 commit bd49d01

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/ide/src/static_index.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,7 @@ fn get_definition(sema: &Semantics<'_, RootDatabase>, token: SyntaxToken) -> Opt
210210
let def = IdentClass::classify_token(sema, &token).map(IdentClass::definitions_no_ops);
211211
if let Some(&[x]) = def.as_deref() {
212212
return Some(x);
213-
} else {
214-
continue;
215-
};
213+
}
216214
}
217215
None
218216
}

0 commit comments

Comments
 (0)