mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 00:55:00 +08:00
Simplify the check to decide to stop a loop
This commit is contained in:
parent
febea735ca
commit
1693d1a311
@ -78,7 +78,7 @@ pub fn compute_docids(
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
} else if let Some(left_word_docids) = ctx.word_docids(Some(universe), left_word)? {
|
} else if let Some(left_word_docids) = ctx.word_docids(Some(universe), left_word)? {
|
||||||
if universe.is_disjoint(&left_word_docids) {
|
if left_word_docids.is_empty() {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user