mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
chore: cleanup
This commit is contained in:
parent
eb4d71e157
commit
7980819d6a
4 changed files with 6 additions and 8 deletions
|
|
@ -207,10 +207,10 @@ pub fn exes(
|
|||
|
||||
let matches = {
|
||||
let res = best_matches_path(&split_command[index], executables);
|
||||
if res.is_none() {
|
||||
vec![split_command[index].clone()]
|
||||
if let Some(res) = res {
|
||||
res
|
||||
} else {
|
||||
res.unwrap()
|
||||
vec![split_command[index].clone()]
|
||||
}
|
||||
};
|
||||
for match_ in matches {
|
||||
|
|
@ -219,7 +219,7 @@ pub fn exes(
|
|||
|
||||
let tag = "{{exes}}";
|
||||
let placeholder = suggest[placeholder.clone()].to_owned();
|
||||
*suggest = suggest.replace(&placeholder, &tag);
|
||||
*suggest = suggest.replace(&placeholder, tag);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue