Skip to content

Commit 8b181f9

Browse files
committed
style fix
1 parent 7d91f14 commit 8b181f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func main() {
3737
}
3838

3939
hunkCount := 0
40-
errCount := 0
40+
failCount := 0
4141

4242
warnc := make(chan string)
4343
failc := make(chan error)
@@ -59,14 +59,14 @@ func main() {
5959
fmt.Print(msg)
6060
case err := <-failc:
6161
fmt.Print(err)
62-
errCount++
62+
failCount++
6363
case <-donec:
6464
c++
6565
}
6666
}
6767

68-
if errCount > 0 {
69-
fmt.Printf("%d failures detected. Please fix them before you can commit.\n", errCount)
68+
if failCount > 0 {
69+
fmt.Printf("%d failures detected. Please fix them before you can commit.\n", failCount)
7070
os.Exit(1)
7171
}
7272
}

0 commit comments

Comments
 (0)