Skip to content

Commit

Permalink
Remove unneeded take_while condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kimono-koans committed Jan 13, 2024
1 parent fe72728 commit 5a9e171
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/data/paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,6 @@ impl<'a> PathDeconstruction<'a> for PathData {
self.path_buf
.ancestors()
.skip_while(|ancestor| ancestor.components().count() > *DATASET_MAX_LEN)
.take_while(|ancestor| {
!GLOBAL_CONFIG
.dataset_collection
.filter_dirs
.contains(*ancestor)
})
.find(|ancestor| {
GLOBAL_CONFIG
.dataset_collection
Expand Down

0 comments on commit 5a9e171

Please sign in to comment.