mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-18 20:11:03 +00:00
style: simplify equality check
This commit is contained in:
parent
f29f9387b5
commit
07c26adc35
@ -265,7 +265,7 @@ impl<'a> InteractivePrinter<'a> {
|
|||||||
.content_type
|
.content_type
|
||||||
.map_or(false, |c| c.is_binary() && !config.show_nonprintable);
|
.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
|
None
|
||||||
} else {
|
} else {
|
||||||
// Determine the type of syntax for highlighting
|
// Determine the type of syntax for highlighting
|
||||||
|
Loading…
x
Reference in New Issue
Block a user