refactor: refine prettier configuration
[e-mobility-charging-stations-simulator.git] / src / utils / AsyncLock.ts
index c6b35b84457fa9f090b002417e4cbdfeb32cfb5e..099aac15bd72a140157a967e7d3f5648b74672f3 100644 (file)
@@ -35,7 +35,7 @@ export class AsyncLock {
       asyncLock.acquired = true
       return
     }
-    await new Promise<void>((resolve) => {
+    await new Promise<void>(resolve => {
       asyncLock.resolveQueue.enqueue(resolve)
     })
   }
@@ -48,7 +48,7 @@ export class AsyncLock {
     }
     // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
     const queuedResolve = asyncLock.resolveQueue.dequeue()!
-    await new Promise<void>((resolve) => {
+    await new Promise<void>(resolve => {
       queuedResolve()
       resolve()
     })