lint: s/+=1/++, remove else clauses

This commit is contained in:
Tzu-Jung Lee
2017-01-17 00:26:32 -08:00
parent af2a66b226
commit 55cb08722d
8 changed files with 32 additions and 42 deletions

View File

@ -25,7 +25,7 @@ func main() {
if err != nil {
log.Fatal(err.Error())
}
counter += 1
counter++
if counter%1000 == 0 {
fmt.Println("Read", counter)
}
@ -47,7 +47,7 @@ func main() {
log.Fatal(err.Error())
}
counter += 1
counter++
if counter%1000 == 0 {
fmt.Println("Write", counter)
}