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)] {