From 27a0f48441aae2fe190efd33bec086b1c6480288 Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Wed, 2 May 2018 18:04:47 +0100 Subject: [PATCH] refactor: tidy up _inactive check --- src/rest/handlers/RequestHandler.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/rest/handlers/RequestHandler.js b/src/rest/handlers/RequestHandler.js index bf6609029..9137d6a49 100644 --- a/src/rest/handlers/RequestHandler.js +++ b/src/rest/handlers/RequestHandler.js @@ -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) {