Skip to content

Commit

Permalink
drop non case is acc ready
Browse files Browse the repository at this point in the history
  • Loading branch information
samster25 committed Feb 14, 2024
1 parent e1106d6 commit fc9b5be
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/daft-scan/src/scan_task_iters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ struct MergeByFileSize {

impl MergeByFileSize {
fn accumulator_ready(&self) -> bool {
if self.accumulator.is_none() {
true
} else if let Some(acc) = &self.accumulator && let Some(acc_bytes) = acc.size_bytes() && acc_bytes >= self.min_size_bytes {
if let Some(acc) = &self.accumulator && let Some(acc_bytes) = acc.size_bytes() && acc_bytes >= self.min_size_bytes {
true
} else {
false
Expand Down

0 comments on commit fc9b5be

Please sign in to comment.