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 { fn no_delete_predicates(chunks: &[Arc<C>]) -> bool {
for chunk in chunks { chunks
if !chunk.delete_predicates().is_empty() { .iter()
return false; .all(|chunk| chunk.delete_predicates().is_empty())
}
}
true
} }
/// Find the columns needed in the primary key across schemas /// Find the columns needed in the primary key across schemas