From 1f4d6bd7fc09f7f1b39b8ce9e13e807b81ef0729 Mon Sep 17 00:00:00 2001 From: jhspetersson Date: Mon, 6 Nov 2023 15:03:30 +0100 Subject: [PATCH] simplify code a very tiny bit --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 6e58a3ae4..775dc6e69 100644 --- a/src/main.rs +++ b/src/main.rs @@ -52,7 +52,7 @@ fn main() -> ExitCode { let env_var_value = std::env::var("NO_COLOR").ok().unwrap_or(String::new()); let env_no_color = str_to_bool(&env_var_value).unwrap_or(false); - let mut no_color = env_no_color || (config.no_color.is_some() && config.no_color.unwrap()); + let mut no_color = env_no_color || config.no_color.unwrap_or(false); #[cfg(windows)] {