mirror of
https://github.com/securego/gosec.git
synced 2024-12-25 03:55:54 +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