Skip to content

Commit

Permalink
Satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
terotil authored and aishek committed Aug 28, 2019
1 parent a056d89 commit f08fa61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ AxiosRateLimit.prototype.shift = function () {
queued.resolve()

if (this.timeslotRequests === 0) {
const timeOut = setTimeout(function () {
var timeOut = setTimeout(function () {
this.timeslotRequests = 0
this.shift()
}.bind(this), this.perMilliseconds)
// In Node we can avoid keeping process alive unnecessarily by calling
// unref() on timeout object. That's not available elsewhere.
typeof timeOut.unref === 'function' ? timeOut.unref() : null
if (typeof timeOut.unref === 'function') timeOut.unref()
}
this.timeslotRequests += 1
}
Expand Down

0 comments on commit f08fa61

Please sign in to comment.