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 c66945d commit 5381b7b
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 @@ -1326,7 +1326,10 @@ impl Detection {
);
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,
false,
)
Expand Down

0 comments on commit 5381b7b

Please sign in to comment.