diff --git a/cmd/protoc-gen-go-http/httpTemplate.tpl b/cmd/protoc-gen-go-http/httpTemplate.tpl index 8f3e87a2e..ec8477f92 100644 --- a/cmd/protoc-gen-go-http/httpTemplate.tpl +++ b/cmd/protoc-gen-go-http/httpTemplate.tpl @@ -81,6 +81,6 @@ func (c *{{$svrType}}HTTPClientImpl) {{.Name}}(ctx context.Context, in *{{.Reque if err != nil { return nil, err } - return &out, err + return &out, nil } {{end}}