From faa35ef7f50ee0b43b35c7dc84fd7d42ee7d943c Mon Sep 17 00:00:00 2001 From: loucadufault <40028187+loucadufault@users.noreply.github.com> Date: Wed, 4 Dec 2024 14:16:06 +0000 Subject: [PATCH] style: lint --- packages/webhid/src/methods.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/webhid/src/methods.ts b/packages/webhid/src/methods.ts index b45b00e..a96d3e5 100644 --- a/packages/webhid/src/methods.ts +++ b/packages/webhid/src/methods.ts @@ -76,16 +76,18 @@ export async function setupXkeysPanel(browserDevice: HIDDevice): Promise console.error(`Xkeys: Error emitted after setup already rejected:`, e) return } - deviceWrap.close() + deviceWrap + .close() .then(() => reject()) .catch(reject) .finally(() => (alreadyRejected = true)) } - // Handle all error events until the instance is returned + // Handle all error events until the instance is returned xkeys.on('error', xkeysStopgapErrorHandler) - + // Wait for the device to initialize: - xkeys.init() + xkeys + .init() .then(() => { resolve(xkeys) xkeys.removeListener('error', xkeysStopgapErrorHandler)