fix no-fail flag logic

This commit is contained in:
JulesDT 2019-03-18 17:22:29 -04:00 committed by Grant Murphy
parent 2bd007e968
commit c5e6c4aedd

View file

@ -352,7 +352,7 @@ func main() {
logWriter.Close() // #nosec logWriter.Close() // #nosec
// Do we have an issue? If so exit 1 unless NoFail is set // Do we have an issue? If so exit 1 unless NoFail is set
if issuesFound && !*flagNoFail || len(errors) != 0 { if (issuesFound || len(errors) != 0) && !*flagNoFail {
os.Exit(1) os.Exit(1)
} }
} }