Skip to content

Commit

Permalink
Fix lint warning
Browse files Browse the repository at this point in the history
Signed-off-by: Cosmin Cojocar <[email protected]>
  • Loading branch information
ccojocar committed Jul 28, 2022
1 parent 45bf9a6 commit 845483e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gosec/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func exit(issues []*gosec.Issue, errors map[string][]gosec.Error, noFail bool) {
nsi++
}
}
if (nsi > 0 || len(errors) > 0) && !*flagNoFail {
if (nsi > 0 || len(errors) > 0) && !noFail {
os.Exit(1)
}
os.Exit(0)
Expand Down

0 comments on commit 845483e

Please sign in to comment.