From: Jérôme Benoit Date: Sat, 3 Aug 2024 13:24:02 +0000 (+0200) Subject: chore: trivial AsyncLock cleanup X-Git-Tag: ocpp-server@v1.5.2~132 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=88f227db404f4cf2942d541b7146adde8a434794;p=e-mobility-charging-stations-simulator.git chore: trivial AsyncLock cleanup Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/AsyncLock.ts b/src/utils/AsyncLock.ts index 95a90c21..5f505a53 100644 --- a/src/utils/AsyncLock.ts +++ b/src/utils/AsyncLock.ts @@ -52,7 +52,8 @@ export class AsyncLock { return } await new Promise(resolve => { - asyncLock.resolveQueue.dequeue()?.() + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + asyncLock.resolveQueue.dequeue()!() resolve() }) }