remove redundant statements in generated code template for protoc-gen-go-http (#976)

pull/982/head
Michael Li 4 years ago committed by GitHub
parent 930d1f6cf7
commit ad8f12c9fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      cmd/protoc-gen-go-http/template.go

@ -77,9 +77,6 @@ func (c *{{$svrType}}HTTPClientImpl) {{.Name}}(ctx context.Context, in *{{.Reque
{{else}} {{else}}
err = c.cc.Invoke(ctx, path, nil, &out{{.ResponseBody}}, http1.Method("{{.Method}}"), http1.PathPattern("{{.Path}}")) err = c.cc.Invoke(ctx, path, nil, &out{{.ResponseBody}}, http1.Method("{{.Method}}"), http1.PathPattern("{{.Path}}"))
{{end}} {{end}}
if err != nil {
return
}
return return
} }
{{end}} {{end}}

Loading…
Cancel
Save