mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
WIP: Linting
This commit is contained in:
parent
45be87fe82
commit
19b2763cfe
@ -193,7 +193,7 @@ export class ThrottlingQueue {
|
||||
* Return `tasks`, unless the queue has been disposed of.
|
||||
*/
|
||||
private get tasks(): (() => Promise<void>)[] {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user