diff --git a/githook-gofmt/hook.go b/githook-gofmt/hook.go index 752460c..4e8ac6a 100644 --- a/githook-gofmt/hook.go +++ b/githook-gofmt/hook.go @@ -18,7 +18,7 @@ func main() { args := []string{"-l"} args = append(args, files...) - result := general.RunCommand("gofmt", args...) + result, _ := general.RunCommand("gofmt", args...) if result == "" { os.Exit(0) return