Skip to content

Commit

Permalink
simplify code a very tiny bit
Browse files Browse the repository at this point in the history
  • Loading branch information
jhspetersson committed Nov 6, 2023
1 parent c35614c commit 1f4d6bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
{
Expand Down

0 comments on commit 1f4d6bd

Please sign in to comment.