diff --git a/tool/kratos-protoc/protoc.go b/tool/kratos-protoc/protoc.go index 4943f733d..dc420a37b 100644 --- a/tool/kratos-protoc/protoc.go +++ b/tool/kratos-protoc/protoc.go @@ -101,10 +101,7 @@ func generate(ctx *cli.Context, protoc string) error { cmd.Env = os.Environ() cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr - if err := cmd.Run(); err != nil { - return err - } - return nil + return cmd.Run() } func goget(url string) error {