refactor: address review comment

pull/24376/head
Nga Tran 2021-09-21 16:50:29 -04:00
parent a06afb3932
commit 0fc2567161
1 changed files with 3 additions and 6 deletions

View File

@ -950,12 +950,9 @@ impl<C: QueryChunk + 'static> Deduplicater<C> {
}
fn no_delete_predicates(chunks: &[Arc<C>]) -> bool {
for chunk in chunks {
if !chunk.delete_predicates().is_empty() {
return false;
}
}
true
chunks
.iter()
.all(|chunk| chunk.delete_predicates().is_empty())
}
/// Find the columns needed in the primary key across schemas