diff --git a/src/api/apiManager.ts b/src/api/apiManager.ts index cb0ee43..cf01da7 100644 --- a/src/api/apiManager.ts +++ b/src/api/apiManager.ts @@ -31,7 +31,7 @@ export class ApiManager { let queue = this.queues.get(`${hash}:${routeId.majorParameter}`); - if (queue === null) { + if (!queue) { const apiHandler = new ApiHandler(this.client, this, this._token, hash, routeId.majorParameter); this.queues.set(apiHandler.id, apiHandler);