mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
remove trailing space
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user