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}}
err = c.cc.Invoke(ctx, path, nil, &out{{.ResponseBody}}, http1.Method("{{.Method}}"), http1.PathPattern("{{.Path}}"))
{{end}}
if err != nil {
return
}
return
}
{{end}}

Loading…
Cancel
Save