Skip to content

Commit b1c13af

Browse files
committed
fix(generator): use correct return type to prevent compile errors
relates to #157
1 parent 9d64fb7 commit b1c13af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/go/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func (r {{#structPrefix}}{{&classname}}{{/structPrefix}}{{operationId}}Request)
104104
a := r.apiService
105105
client, ok := a.client.(*APIClient)
106106
if !ok {
107-
return {{#returnType}}nil, {{/returnType}} fmt.Errorf("could not parse client to type APIClient")
107+
return {{#returnType}}localVarReturnValue, {{/returnType}} fmt.Errorf("could not parse client to type APIClient")
108108
}
109109
localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "{{{classname}}}Service.{{{nickname}}}")
110110
if err != nil {

0 commit comments

Comments
 (0)