We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d64fb7 commit b1c13afCopy full SHA for b1c13af
templates/go/api.mustache
@@ -104,7 +104,7 @@ func (r {{#structPrefix}}{{&classname}}{{/structPrefix}}{{operationId}}Request)
104
a := r.apiService
105
client, ok := a.client.(*APIClient)
106
if !ok {
107
- return {{#returnType}}nil, {{/returnType}} fmt.Errorf("could not parse client to type APIClient")
+ return {{#returnType}}localVarReturnValue, {{/returnType}} fmt.Errorf("could not parse client to type APIClient")
108
}
109
localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "{{{classname}}}Service.{{{nickname}}}")
110
if err != nil {
0 commit comments