From 5a302a6347bd1590766507ac33855a70927ca720 Mon Sep 17 00:00:00 2001 From: two Date: Wed, 22 May 2019 18:07:44 +0800 Subject: [PATCH] remove redundant code --- tool/kratos-protoc/protoc.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 {