Simplify the check to decide to stop a loop

This commit is contained in:
Clément Renault 2024-07-10 10:09:39 +02:00
parent febea735ca
commit 1693d1a311
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

View File

@ -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;
} }
} }