Skip to content

Commit

Permalink
fix: Check if the include filter has filters before iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamLeyshon committed Aug 1, 2024
1 parent 6d13be1 commit a3a561d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ impl CopyBuilder {
}
}

if !self
if !self.include_filters.is_empty() && !self
.include_filters
.iter()
.any(|f| entry.path().to_string_lossy().contains(f))
Expand Down

0 comments on commit a3a561d

Please sign in to comment.