Skip to content

Commit

Permalink
fix(RequestHandler): a global timeout implies limited (#3950)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceEEC authored Mar 17, 2020
1 parent 609a545 commit 7b38f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rest/RequestHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class RequestHandler {
}

get limited() {
return (this.manager.globalTimeout || this.remaining <= 0) && Date.now() < this.reset;
return Boolean(this.manager.globalTimeout) || (this.remaining <= 0 && Date.now() < this.reset);
}

get _inactive() {
Expand Down

0 comments on commit 7b38f46

Please sign in to comment.