From 6cb050188eaaf4feb567c076f141eed9fd62ef89 Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Sat, 16 Aug 2025 12:52:06 -0300 Subject: [PATCH] feat: ignore all empty environment variables Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) --- src/config.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/config.rs b/src/config.rs index 144566c..b0dc353 100644 --- a/src/config.rs +++ b/src/config.rs @@ -103,13 +103,7 @@ impl Settings { // Add environment variables debug!("CONFIG: Adding environment variables"); - let mut env_source = config::Environment::with_prefix("KEEP").separator("__"); - // Ignore empty KEEP_LIST_FORMAT - if let Ok(list_format) = std::env::var("KEEP_LIST_FORMAT") { - if list_format.is_empty() { - env_source = env_source.ignore_empty(true); - } - } + let env_source = config::Environment::with_prefix("KEEP").separator("__").ignore_empty(true); config_builder = config_builder.add_source(env_source); // Override with CLI args