Skip to content

Commit c11583d

Browse files
committed
Simplify
1 parent a64e8ef commit c11583d

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

‎datafusion/physical-plan/src/filter.rs‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -758,13 +758,9 @@ impl Stream for FilterExecStream {
758758
// Flush any remaining buffered batch
759759
match self.batch_coalescer.finish_buffered_batch() {
760760
Ok(()) => {
761-
if let Some(batch) =
762-
self.batch_coalescer.next_completed_batch()
763-
{
764-
poll = Poll::Ready(Some(Ok(batch)));
765-
} else {
766-
poll = Poll::Ready(None);
767-
}
761+
poll = Poll::Ready(
762+
self.batch_coalescer.next_completed_batch().map(Ok),
763+
);
768764
}
769765
Err(e) => {
770766
poll = Poll::Ready(Some(Err(e.into())));

0 commit comments

Comments
 (0)