mirror of
https://github.com/securego/gosec.git
synced 2024-12-25 03:55:54 +00:00
fix no-fail flag logic
This commit is contained in:
parent
2bd007e968
commit
c5e6c4aedd
1 changed files with 1 additions and 1 deletions
|
@ -352,7 +352,7 @@ func main() {
|
|||
logWriter.Close() // #nosec
|
||||
|
||||
// Do we have an issue? If so exit 1 unless NoFail is set
|
||||
if issuesFound && !*flagNoFail || len(errors) != 0 {
|
||||
if (issuesFound || len(errors) != 0) && !*flagNoFail {
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue