mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-03-25 18:26:09 +01:00
Update Dependencies (#486)
* github.com/Microsoft/go-winio * github.com/bradrydzewski/togo * github.com/containerd/containerd * github.com/docker/cli * github.com/docker/docker * github.com/docker/docker-credential-helpers * github.com/franela/goblin * github.com/google/go-github/v39 * github.com/joho/godotenv * github.com/lib/pq * github.com/moby/moby * github.com/prometheus/client_golang * github.com/tevino/abool * github.com/woodpecker-ci/togo * github.com/xanzy/go-gitlab * github.com/xeipuuv/gojsonschema * github.com/mattn/go-sqlite3
This commit is contained in:
10
vendor/github.com/google/go-github/v39/github/github.go
generated
vendored
10
vendor/github.com/google/go-github/v39/github/github.go
generated
vendored
@@ -708,10 +708,10 @@ func (c *Client) checkRateLimitBeforeDo(req *http.Request, rateLimitCategory rat
|
||||
return nil
|
||||
}
|
||||
|
||||
// compareHttpResponse returns whether two http.Response objects are equal or not.
|
||||
// compareHTTPResponse returns whether two http.Response objects are equal or not.
|
||||
// Currently, only StatusCode is checked. This function is used when implementing the
|
||||
// Is(error) bool interface for the custom error types in this package.
|
||||
func compareHttpResponse(r1, r2 *http.Response) bool {
|
||||
func compareHTTPResponse(r1, r2 *http.Response) bool {
|
||||
if r1 == nil && r2 == nil {
|
||||
return true
|
||||
}
|
||||
@@ -761,7 +761,7 @@ func (r *ErrorResponse) Is(target error) bool {
|
||||
}
|
||||
|
||||
if r.Message != v.Message || (r.DocumentationURL != v.DocumentationURL) ||
|
||||
!compareHttpResponse(r.Response, v.Response) {
|
||||
!compareHTTPResponse(r.Response, v.Response) {
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -827,7 +827,7 @@ func (r *RateLimitError) Is(target error) bool {
|
||||
|
||||
return r.Rate == v.Rate &&
|
||||
r.Message == v.Message &&
|
||||
compareHttpResponse(r.Response, v.Response)
|
||||
compareHTTPResponse(r.Response, v.Response)
|
||||
}
|
||||
|
||||
// AcceptedError occurs when GitHub returns 202 Accepted response with an
|
||||
@@ -881,7 +881,7 @@ func (r *AbuseRateLimitError) Is(target error) bool {
|
||||
|
||||
return r.Message == v.Message &&
|
||||
r.RetryAfter == v.RetryAfter &&
|
||||
compareHttpResponse(r.Response, v.Response)
|
||||
compareHTTPResponse(r.Response, v.Response)
|
||||
}
|
||||
|
||||
// sanitizeURL redacts the client_secret parameter from the URL which may be
|
||||
|
||||
Reference in New Issue
Block a user