Make checks more concise

This commit is contained in:
Steve Pentland authored and David Peter committed 2018-02-20 21:42:47 +01:00
1 parent faf00b6985
commit 4829dfbc85
2 files changed
+4 -6

No files matched your search

+2 -4
View File
@@ -158,14 +158,12 @@ fn main() {
},
};
// We default Windows to NoColor if full or auto had been specified.
// We default Windows to NoColor if full had been specified.
if cfg!(windows) && options.output_style == OutputStyleOption::Full {
options.output_style = OutputStyleOption::NoColor;
}
if options.output_style == OutputStyleOption::Basic
|| options.output_style == OutputStyleOption::NoColor
{
if options.output_style != OutputStyleOption::Full {
colored::control::set_override(false);
}