diff --git a/languages/golang/templates/api.mustache b/languages/golang/templates/api.mustache index e0dc0031..93267376 100644 --- a/languages/golang/templates/api.mustache +++ b/languages/golang/templates/api.mustache @@ -483,9 +483,6 @@ func (a *{{{classname}}}Service) {{nickname}}Execute(r {{#structPrefix}}{{&class newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) newErr.Model = v {{! TEMPLATE CUSTOMIZATION - END - use the GenericOpenAPIError struct from the core module instead of the one generated by OpenAPI generator by default }} - {{! TEMPLATE CUSTOMIZATION - BEGIN - don't return http response - would require closing after each SDK API call to prevent resource leaks }} - return {{#returnType}}localVarReturnValue, {{/returnType}} newErr - {{! TEMPLATE CUSTOMIZATION - END - don't return http response - would require closing after each SDK API call to prevent resource leaks }} {{^-last}} {{! TEMPLATE CUSTOMIZATION - BEGIN - don't return http response - would require closing after each SDK API call to prevent resource leaks }} return {{#returnType}}localVarReturnValue, {{/returnType}} newErr