chore(lint): fix some condition. (#624)

This commit is contained in:
Bo-Yi Wu
2021-08-04 09:00:04 +08:00
committed by GitHub
parent 0a8d801380
commit ea71e99f2d
8 changed files with 27 additions and 23 deletions

View File

@@ -50,8 +50,11 @@ func main() {
},
})
if err != nil {
log.Fatalf("could not greet: %v", err)
log.Println("could not greet: ", err)
}
if r != nil {
log.Printf("Success: %t\n", r.Success)
log.Printf("Count: %d\n", r.Counts)
}
log.Printf("Success: %t\n", r.Success)
log.Printf("Count: %d\n", r.Counts)
}