Skip to content

Commit

Permalink
style: simplify equality check
Browse files Browse the repository at this point in the history
  • Loading branch information
hamirmahal authored and Enselic committed Mar 11, 2024
1 parent f29f938 commit 07c26ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/printer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ impl<'a> InteractivePrinter<'a> {
.content_type
.map_or(false, |c| c.is_binary() && !config.show_nonprintable);

let highlighter_from_set = if is_printing_binary || config.colored_output == false {
let highlighter_from_set = if is_printing_binary || !config.colored_output {
None
} else {
// Determine the type of syntax for highlighting
Expand Down

0 comments on commit 07c26ad

Please sign in to comment.