summaryrefslogtreecommitdiff
path: root/src/files.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/files.rs')
-rw-r--r--src/files.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/files.rs b/src/files.rs
index b23f6a6..29cd2a9 100644
--- a/src/files.rs
+++ b/src/files.rs
@@ -105,9 +105,7 @@ pub fn index_files_recursively(
.into_iter()
.par_bridge()
.for_each(|entry| {
- if !running.load(Ordering::SeqCst) {
- return;
- } else {
+ if running.load(Ordering::SeqCst) {
let path = entry.unwrap().into_path();
if !path.is_file() {
return;