remove trailing space

This commit is contained in:
rreichel3-oai
2025-12-22 12:38:57 -05:00
committed by GitHub
parent 91d03f29d1
commit c16de5e36a

View File

@@ -69,13 +69,13 @@ fn is_dangerous_to_call_with_exec(command: &[String]) -> bool {
Some(cmd) if cmd.ends_with("git") || cmd.ends_with("/git") => {
matches!(
command.get(1).map(String::as_str),
Some("reset" | "rm" | "--force" )
Some("reset" | "rm" | "--force")
)
}
Some("rm") => matches!(
command.get(1).map(String::as_str),
Some("-f" | "-rf" | "-Rf" | "-fr" | "-fR" | "--force" )
Some("-f" | "-rf" | "-Rf" | "-fr" | "-fR" | "--force")
),
// for sudo <cmd> simply do the check for <cmd>