mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
refactor: tidy up _inactive check
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user