Skip to content

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Nov 23, 2015
1 parent 7d91f14 commit 8b181f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Expand Up @@ -37,7 +37,7 @@ func main() {
}

hunkCount := 0
errCount := 0
failCount := 0

warnc := make(chan string)
failc := make(chan error)
Expand All @@ -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)
}
}
Expand Down

0 comments on commit 8b181f9

Please sign in to comment.