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 e92e997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -173,7 +173,7 @@ export function throttling(octokit: Octokit, octokitOptions: OctokitOptions) {
return {};
})();

if (wantRetry) {
if (wantRetry && retryAfter) {
options.request.retryCount++;
return retryAfter * state.retryAfterBaseValue;
}
Expand Down

0 comments on commit e92e997

Please sign in to comment.