From 4d209aa0f55160f757c8b573318edbf06c7385d9 Mon Sep 17 00:00:00 2001 From: Benjamin Muschko Date: Fri, 28 Dec 2018 11:48:19 -0600 Subject: [PATCH] Fix boolean condition True boolean for the fail CLI option should exit the program with an error code. --- verify/verify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/verify/verify.go b/verify/verify.go index 7e14fe3..1585233 100644 --- a/verify/verify.go +++ b/verify/verify.go @@ -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) } }