mirror of
https://github.com/securego/gosec.git
synced 2024-11-05 19:45:51 +00:00
Fix lint warning
Signed-off-by: Cosmin Cojocar <gcojocar@adobe.com>
This commit is contained in:
parent
45bf9a6095
commit
845483e0b1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue