Skip to content

Commit 47bd4ba

Browse files
committed
fix(go): remove duplicated return statements
1 parent 1e9dfc7 commit 47bd4ba

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

languages/golang/templates/api.mustache

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -483,9 +483,6 @@ func (a *{{{classname}}}Service) {{nickname}}Execute(r {{#structPrefix}}{{&class
483483
newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v)
484484
newErr.Model = v
485485
{{! TEMPLATE CUSTOMIZATION - END - use the GenericOpenAPIError struct from the core module instead of the one generated by OpenAPI generator by default }}
486-
{{! TEMPLATE CUSTOMIZATION - BEGIN - don't return http response - would require closing after each SDK API call to prevent resource leaks }}
487-
return {{#returnType}}localVarReturnValue, {{/returnType}} newErr
488-
{{! TEMPLATE CUSTOMIZATION - END - don't return http response - would require closing after each SDK API call to prevent resource leaks }}
489486
{{^-last}}
490487
{{! TEMPLATE CUSTOMIZATION - BEGIN - don't return http response - would require closing after each SDK API call to prevent resource leaks }}
491488
return {{#returnType}}localVarReturnValue, {{/returnType}} newErr

0 commit comments

Comments
 (0)