Skip to content

Commit 09a6dbb

Browse files
committed
no need to decode a null-response.
1 parent 1e168c7 commit 09a6dbb

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

apis/api_invites.go

-9
Original file line numberDiff line numberDiff line change
@@ -442,14 +442,5 @@ func (a *InvitesApi) RespondToInviteExecute(r ApiRespondToInviteRequest) (*http.
442442
return localVarHTTPResponse, newErr
443443
}
444444

445-
err = a.Client.decode(&localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
446-
if err != nil {
447-
newErr := &GenericOpenAPIError{
448-
body: localVarBody,
449-
error: err.Error(),
450-
}
451-
return localVarHTTPResponse, newErr
452-
}
453-
454445
return localVarHTTPResponse, nil
455446
}

0 commit comments

Comments
 (0)