mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 22:40:09 +01:00
chore: cleanup
This commit is contained in:
parent
f1f7ed8dbe
commit
171b3d4607
5 changed files with 26 additions and 23 deletions
|
|
@ -55,13 +55,14 @@ pub fn runtime_match(
|
|||
file = check_dirs(xdg_data_dirs);
|
||||
}
|
||||
|
||||
#[allow(clippy::question_mark)]
|
||||
if file.is_none() {
|
||||
return None;
|
||||
}
|
||||
|
||||
let file = std::fs::read_to_string(file.unwrap()).unwrap();
|
||||
let rule: Rule = toml::from_str(&file).unwrap();
|
||||
let split_command = split_command(&last_command);
|
||||
let split_command = split_command(last_command);
|
||||
|
||||
let mut pure_suggest;
|
||||
|
||||
|
|
@ -132,7 +133,7 @@ fn eval_condition(
|
|||
shell: &str,
|
||||
last_command: &str,
|
||||
error_msg: &str,
|
||||
split_command: &Vec<String>,
|
||||
split_command: &[String],
|
||||
) -> bool {
|
||||
match condition {
|
||||
"executable" => check_executable(shell, arg),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue