mirror of
https://github.com/go-kratos/kratos.git
synced 2025-03-17 21:07:54 +02:00
fix(protoc-gen-go-http): return nil if err == nil。 (#3188)
This commit is contained in:
parent
c7fa51df7a
commit
9106991c09
@ -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}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user