Skip to content

Commit 845483e

Browse files
committed
Fix lint warning
Signed-off-by: Cosmin Cojocar <[email protected]>
1 parent 45bf9a6 commit 845483e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/gosec/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ func exit(issues []*gosec.Issue, errors map[string][]gosec.Error, noFail bool) {
300300
nsi++
301301
}
302302
}
303-
if (nsi > 0 || len(errors) > 0) && !*flagNoFail {
303+
if (nsi > 0 || len(errors) > 0) && !noFail {
304304
os.Exit(1)
305305
}
306306
os.Exit(0)

0 commit comments

Comments
 (0)