mirror of
https://github.com/danbulant/discord.js
synced 2026-05-29 12:20:23 +00:00
refactor: tidy up _inactive check
This commit is contained in:
parent
b5f37728a7
commit
27a0f48441
1 changed files with 1 additions and 4 deletions
|
|
@ -27,10 +27,7 @@ class RequestHandler {
|
|||
}
|
||||
|
||||
get _inactive() {
|
||||
return this.queue.length === 0 &&
|
||||
!this.limited &&
|
||||
Date.now() > this.resetTime &&
|
||||
(typeof this.busy === 'undefined' || this.busy === false);
|
||||
return this.queue.length === 0 && !this.limited && Date.now() > this.resetTime && this.busy !== true;
|
||||
}
|
||||
|
||||
execute(item) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue