From 5290a78b8c0a741f2c7e83dc78a51f2fb69c3dd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Baz=20Castillo?= Date: Thu, 14 Sep 2023 18:50:04 +0200 Subject: [PATCH] cosmetic --- src/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 2642f3d..2e9755d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -21,15 +21,14 @@ export const version = '__MEDIASOUP_CLIENT_AIORTC_VERSION__'; * Expose Worker factory. */ export async function createWorker( - { logLevel = 'error' }: - WorkerSettings = {} + { logLevel = 'error' }: WorkerSettings = {} ): Promise { logger.debug('createWorker()'); const worker = new Worker({ logLevel }); - return new Promise((resolve, reject) => + return new Promise((resolve, reject) => { worker.on('@success', () => resolve(worker)); worker.on('@failure', reject);