1
0
mirror of https://github.com/securego/gosec.git synced 2025-06-14 23:45:03 +02:00

Set the default color on only for text format

Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
This commit is contained in:
Cosmin Cojocar
2020-04-14 18:32:48 +02:00
committed by Cosmin Cojocar
parent 1a113d6da9
commit c58f3563d3

View File

@ -284,7 +284,7 @@ func main() {
// Color flag is allowed for text format // Color flag is allowed for text format
var color bool var color bool
if *flagFormat != "text" { if *flagFormat == "text" {
color = true color = true
} }