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:
committed by
Cosmin Cojocar
parent
1a113d6da9
commit
c58f3563d3
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user