mirror of
https://github.com/gfleury/go-bitbucket-v1.git
synced 2025-05-20 20:24:34 -05:00
Fix Delete 204 response with no body
This commit is contained in:
parent
92d089b1ab
commit
da305a07b8
@ -1396,7 +1396,7 @@ Deletes a pull request. <p> To call this resource, users must be authent
|
|||||||
@param pullRequestId the ID of the pull request within the repository
|
@param pullRequestId the ID of the pull request within the repository
|
||||||
@return */
|
@return */
|
||||||
func (a *DefaultApiService) Delete(projectKey, repositorySlug string, pullRequestID int64) (*APIResponse, error) {
|
func (a *DefaultApiService) Delete(projectKey, repositorySlug string, pullRequestID int64) (*APIResponse, error) {
|
||||||
return a.DeleteWithVersion(projectKey, repositorySlug, pullRequestID, 1)
|
return a.DeleteWithVersion(projectKey, repositorySlug, pullRequestID, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* DefaultApiService
|
/* DefaultApiService
|
||||||
@ -1458,7 +1458,7 @@ func (a *DefaultApiService) DeleteWithVersion(projectKey, repositorySlug string,
|
|||||||
return NewAPIResponseWithError(localVarHTTPResponse, bodyBytes, reportError("Status: %v, Body: %s", localVarHTTPResponse.Status, bodyBytes))
|
return NewAPIResponseWithError(localVarHTTPResponse, bodyBytes, reportError("Status: %v, Body: %s", localVarHTTPResponse.Status, bodyBytes))
|
||||||
}
|
}
|
||||||
|
|
||||||
return NewBitbucketAPIResponse(localVarHTTPResponse)
|
return NewAPIResponse(localVarHTTPResponse), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/* DefaultApiService
|
/* DefaultApiService
|
||||||
|
Loading…
x
Reference in New Issue
Block a user