Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
DanNixon committed Aug 20, 2024
1 parent 04098ee commit 337ad54
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions overlays/pkgs/sway-helper/src/helpers/programs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ pub(crate) fn list_programs_from_path() -> Vec<String> {
let path = entry.path();
if path.is_file() && is_executable(&path) {
path.file_name()
.map(|v| v.to_str().map(|v| v.to_owned()))
.flatten()
.and_then(|v| v.to_str().map(|v| v.to_owned()))
} else {
None
}
Expand Down

0 comments on commit 337ad54

Please sign in to comment.