From 19b2763cfe3ddcaefed00d79c231a523466a94be Mon Sep 17 00:00:00 2001 From: David Teller Date: Wed, 25 May 2022 12:34:42 +0200 Subject: [PATCH] WIP: Linting --- src/queues/ThrottlingQueue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/queues/ThrottlingQueue.ts b/src/queues/ThrottlingQueue.ts index 6c2fb4d..b63c9c8 100644 --- a/src/queues/ThrottlingQueue.ts +++ b/src/queues/ThrottlingQueue.ts @@ -193,7 +193,7 @@ export class ThrottlingQueue { * Return `tasks`, unless the queue has been disposed of. */ private get tasks(): (() => Promise)[] { - if (this._tasks == null) { + if (this._tasks === null) { throw new TypeError("This Throttling Queue has been disposed of and shouldn't be used anymore"); } return this._tasks;