chore: trivial AsyncLock cleanup
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 3 Aug 2024 13:24:02 +0000 (15:24 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 3 Aug 2024 13:24:02 +0000 (15:24 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/utils/AsyncLock.ts

index 95a90c21715499a31ea34be2dc56b677fde16936..5f505a537b07ca47d523010d051c22ebb01dc477 100644 (file)
@@ -52,7 +52,8 @@ export class AsyncLock {
       return
     }
     await new Promise<void>(resolve => {
-      asyncLock.resolveQueue.dequeue()?.()
+      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+      asyncLock.resolveQueue.dequeue()!()
       resolve()
     })
   }