refactor: Typescript does not like .bind() too much

This commit is contained in:
Gregor 2019-01-08 00:21:36 -08:00
parent 3f83dae4e7
commit f06d98479f
1 changed files with 1 additions and 1 deletions

View File

@ -10,5 +10,5 @@ export function addRateLimiting (octokit: GitHubAPI, limiter: Bottleneck) {
}
const noop = () => Promise.resolve()
octokit.hook.before('request', limiter.schedule.bind(limiter, noop))
octokit.hook.before('request', () => limiter.schedule(noop))
}