From 42486f2357b011f9244c6b29f4e05185138ce8d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 20 May 2023 22:11:27 +0200 Subject: [PATCH] refactor(simulator): remove unused async lock class attribute MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/utils/AsyncLock.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/AsyncLock.ts b/src/utils/AsyncLock.ts index 7f44bd25..229086fe 100644 --- a/src/utils/AsyncLock.ts +++ b/src/utils/AsyncLock.ts @@ -10,7 +10,7 @@ export class AsyncLock { private acquired: boolean; private readonly resolveQueue: ((value: void | PromiseLike) => void)[]; - private constructor(private readonly type: AsyncLockType) { + private constructor() { this.acquired = false; this.resolveQueue = []; } @@ -41,7 +41,7 @@ export class AsyncLock { private static getAsyncLock(type: AsyncLockType): AsyncLock { if (!AsyncLock.asyncLocks.has(type)) { - AsyncLock.asyncLocks.set(type, new AsyncLock(type)); + AsyncLock.asyncLocks.set(type, new AsyncLock()); } return AsyncLock.asyncLocks.get(type); } -- 2.34.1