mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 22:40:09 +01:00
chore: clean
This commit is contained in:
parent
92d14cdf20
commit
c10f08a0c2
5 changed files with 20 additions and 21 deletions
|
|
@ -266,11 +266,7 @@ pub fn expand_alias(map: &HashMap<String, String>, command: &str) -> Option<Stri
|
|||
} else {
|
||||
(command, "")
|
||||
};
|
||||
if let Some(expand) = map.get(command) {
|
||||
Some(format!("{} {}", expand, args))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
map.get(command).map(|expand| format!("{} {}", expand, args))
|
||||
}
|
||||
|
||||
pub fn expand_alias_multiline(map: &HashMap<String, String>, command: &str) -> Option<String> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue