From 80c67243df52820ea2e46459dd910cc79ec18dd8 Mon Sep 17 00:00:00 2001 From: kevin zhao Date: Wed, 12 Nov 2025 19:00:09 -0500 Subject: [PATCH] cleanup --- codex-rs/execpolicy2/src/parser.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/codex-rs/execpolicy2/src/parser.rs b/codex-rs/execpolicy2/src/parser.rs index 2a9540edd6..d18ce06d35 100644 --- a/codex-rs/execpolicy2/src/parser.rs +++ b/codex-rs/execpolicy2/src/parser.rs @@ -76,10 +76,10 @@ fn parse_pattern<'v>(pattern: UnpackList>) -> Result .map(parse_pattern_token) .collect::>()?; if tokens.is_empty() { - return Err(Error::InvalidPattern("pattern cannot be empty".to_string())); + Err(Error::InvalidPattern("pattern cannot be empty".to_string())) + } else { + Ok(tokens) } - - Ok(tokens) } fn parse_pattern_token<'v>(value: Value<'v>) -> Result {