Skip to content

Commit 847af46

Browse files
committed
fix: don't let 'q' quit instantly if it's still collecting files.
1 parent d55602a commit 847af46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traverse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl Traversal {
9393
}
9494

9595
pub fn is_costly(&self) -> bool {
96-
self.cost.is_some_and(|d| d.as_secs_f32() > 10.0)
96+
self.cost.is_none_or(|d| d.as_secs_f32() > 10.0)
9797
}
9898
}
9999

0 commit comments

Comments
 (0)