Skip to content

Commit

Permalink
fix: --no-color case
Browse files Browse the repository at this point in the history
  • Loading branch information
fukusuket committed Nov 15, 2024
1 parent bdd77b6 commit c66945d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/detections/detection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,10 @@ impl Detection {
let val = value.to_formatted_string(&Locale::en);
write_color_buffer(
&BufferWriter::stdout(ColorChoice::Always),
Some(Color::Rgb(0, 255, 0)),
get_writable_color(
Some(Color::Rgb(0, 255, 0)),
stored_static.common_options.no_color,
),
key.as_str(),
false,
)
Expand Down

0 comments on commit c66945d

Please sign in to comment.