Skip to content

Commit

Permalink
no need to decode a null-response.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Nov 5, 2024
1 parent 1e168c7 commit 09a6dbb
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions apis/api_invites.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,14 +442,5 @@ func (a *InvitesApi) RespondToInviteExecute(r ApiRespondToInviteRequest) (*http.
return localVarHTTPResponse, newErr
}

err = a.Client.decode(&localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarHTTPResponse, newErr
}

return localVarHTTPResponse, nil
}

0 comments on commit 09a6dbb

Please sign in to comment.