Skip to content

Commit

Permalink
fix: secondary rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Jan 9, 2024
1 parent 4808bd0 commit 50933f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions github_errors/secondary_rate_limit.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ func IsSecondaryRateLimitError(r *github.Response) (bool, *SecondaryRateLimitErr
var body *SecondaryRateLimitBody
res := r.Response

if isRateLimit, b := isSecondaryRateLimit(res); !isRateLimit {
isRateLimit, b := isSecondaryRateLimit(res)
if !isRateLimit {
return false, nil
}
}
body = b

retryAfter := parseSecondaryLimitTime(res)
Expand Down

0 comments on commit 50933f2

Please sign in to comment.