From ad8f12c9fda0b960c87472a6071ae2a8c37e3eb0 Mon Sep 17 00:00:00 2001 From: Michael Li Date: Tue, 1 Jun 2021 00:21:56 +0800 Subject: [PATCH] remove redundant statements in generated code template for protoc-gen-go-http (#976) --- cmd/protoc-gen-go-http/template.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/protoc-gen-go-http/template.go b/cmd/protoc-gen-go-http/template.go index a5317501f..af61955c4 100644 --- a/cmd/protoc-gen-go-http/template.go +++ b/cmd/protoc-gen-go-http/template.go @@ -77,9 +77,6 @@ func (c *{{$svrType}}HTTPClientImpl) {{.Name}}(ctx context.Context, in *{{.Reque {{else}} err = c.cc.Invoke(ctx, path, nil, &out{{.ResponseBody}}, http1.Method("{{.Method}}"), http1.PathPattern("{{.Path}}")) {{end}} - if err != nil { - return - } return } {{end}}