Skip to content

Commit

Permalink
refactor(index.ts): remove unnecessary ts-expect-error for retryAfter
Browse files Browse the repository at this point in the history
  • Loading branch information
oscard0m committed Mar 14, 2022
1 parent 8d61b72 commit 750f3a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -128,7 +128,7 @@ export function throttling(octokit: Octokit, octokitOptions: OctokitOptions) {
const retryCount = ~~options.request.retryCount;
options.request.retryCount = retryCount;

const { wantRetry, retryAfter } = await (async function () {
const { wantRetry, retryAfter = 0 } = await (async function () {
if (/\bsecondary rate\b/i.test(error.message)) {
// The user has hit the secondary rate limit. (REST and GraphQL)
// https://docs.github.com/en/rest/overview/resources-in-the-rest-api#secondary-rate-limits
Expand Down

0 comments on commit 750f3a3

Please sign in to comment.