mirror of
https://github.com/samvallad33/vestige.git
synced 2026-04-25 00:36:22 +02:00
fix: clippy collapsible-if on hybrid_search type filter
CI failed on macOS + Ubuntu with clippy::collapsible_if on the else-if branch of the exclude_types filter. Collapse the inner `if` into the `let Some && ...` guard. Semantics preserved — the includes branch is left as-is to keep include/exclude mutually exclusive behavior. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
27b562d64d
commit
95bde93b49
1 changed files with 4 additions and 4 deletions
|
|
@ -1458,10 +1458,10 @@ impl Storage {
|
|||
if !includes.iter().any(|t| t == &node.node_type) {
|
||||
continue;
|
||||
}
|
||||
} else if let Some(excludes) = exclude_types {
|
||||
if excludes.iter().any(|t| t == &node.node_type) {
|
||||
continue;
|
||||
}
|
||||
} else if let Some(excludes) = exclude_types
|
||||
&& excludes.iter().any(|t| t == &node.node_type)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
let keyword_score = keyword_results
|
||||
.iter()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue