We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d91f14 commit 8b181f9Copy full SHA for 8b181f9
main.go
@@ -37,7 +37,7 @@ func main() {
37
}
38
39
hunkCount := 0
40
- errCount := 0
+ failCount := 0
41
42
warnc := make(chan string)
43
failc := make(chan error)
@@ -59,14 +59,14 @@ func main() {
59
fmt.Print(msg)
60
case err := <-failc:
61
fmt.Print(err)
62
- errCount++
+ failCount++
63
case <-donec:
64
c++
65
66
67
68
- if errCount > 0 {
69
- 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)
70
os.Exit(1)
71
72
0 commit comments