Skip to content

Commit

Permalink
Fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
fluxxcode committed Jan 21, 2024
1 parent 98aaa60 commit f3abdfe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,9 @@ impl FileExplorer {
_ => continue
};

if !self.search_value.is_empty() {
if !file_name.to_lowercase().contains(&self.search_value.to_lowercase()) {
continue;
}
if !self.search_value.is_empty() &&
!file_name.to_lowercase().contains(&self.search_value.to_lowercase()) {
continue;
}

let icon = match path.is_dir() {
Expand Down

0 comments on commit f3abdfe

Please sign in to comment.