Skip to content

Commit

Permalink
rebase & clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Sec-ant committed Jun 30, 2024
1 parent 7f94ccf commit 5795511
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/biome_service/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -892,9 +892,8 @@ impl OverrideSettings {
.rev()
.find_map(|pattern| {
// Early return to avoid unnecessary clone
if pattern.languages.javascript.globals.is_none() {
return None;
}
pattern.languages.javascript.globals.as_ref()?;

if pattern.include.matches_path(path) && !pattern.exclude.matches_path(path) {
pattern.languages.javascript.globals.clone()
} else {
Expand Down

0 comments on commit 5795511

Please sign in to comment.