Skip to content

Commit

Permalink
Fix boolean condition
Browse files Browse the repository at this point in the history
True boolean for the fail CLI option should exit the program with an error code.
  • Loading branch information
bmuschko committed Dec 28, 2018
1 parent 17d5b7b commit 4d209aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verify/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func Process(files []string, fail bool) {
fmt.Println(calculateSeparator(stats))
fmt.Println(stats)

if (failureCount > 0 || errorCount > 0) && !fail {
if (failureCount > 0 || errorCount > 0) && fail {
os.Exit(1)
}
}
Expand Down

0 comments on commit 4d209aa

Please sign in to comment.