From 8b181f972e4d03ff5f45c7f5ad1f8ea26e3abddc Mon Sep 17 00:00:00 2001 From: ezekg Date: Mon, 23 Nov 2015 11:24:56 -0600 Subject: [PATCH] style fix --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 6c7bc7b..089ee24 100644 --- a/main.go +++ b/main.go @@ -37,7 +37,7 @@ func main() { } hunkCount := 0 - errCount := 0 + failCount := 0 warnc := make(chan string) failc := make(chan error) @@ -59,14 +59,14 @@ func main() { fmt.Print(msg) case err := <-failc: fmt.Print(err) - errCount++ + failCount++ case <-donec: c++ } } - if errCount > 0 { - fmt.Printf("%d failures detected. Please fix them before you can commit.\n", errCount) + if failCount > 0 { + fmt.Printf("%d failures detected. Please fix them before you can commit.\n", failCount) os.Exit(1) } }