From c16de5e36abb885a8fb3edc646d76841d65fda57 Mon Sep 17 00:00:00 2001 From: rreichel3-oai Date: Mon, 22 Dec 2025 12:38:57 -0500 Subject: [PATCH] remove trailing space --- codex-rs/core/src/command_safety/is_dangerous_command.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codex-rs/core/src/command_safety/is_dangerous_command.rs b/codex-rs/core/src/command_safety/is_dangerous_command.rs index 0bf91578f7..280596c243 100644 --- a/codex-rs/core/src/command_safety/is_dangerous_command.rs +++ b/codex-rs/core/src/command_safety/is_dangerous_command.rs @@ -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 simply do the check for