Fix lint warning

Signed-off-by: Cosmin Cojocar <gcojocar@adobe.com>
This commit is contained in:
Cosmin Cojocar 2022-07-28 11:01:08 +02:00 committed by Cosmin Cojocar
parent 45bf9a6095
commit 845483e0b1

View file

@ -300,7 +300,7 @@ func exit(issues []*gosec.Issue, errors map[string][]gosec.Error, noFail bool) {
nsi++ nsi++
} }
} }
if (nsi > 0 || len(errors) > 0) && !*flagNoFail { if (nsi > 0 || len(errors) > 0) && !noFail {
os.Exit(1) os.Exit(1)
} }
os.Exit(0) os.Exit(0)