From c3b64ce96a859af06fa529070427cd15ea31a6a1 Mon Sep 17 00:00:00 2001 From: Cayman Date: Thu, 12 Oct 2023 14:42:38 -0400 Subject: [PATCH] chore: simplify catch --- packages/interface/src/events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/interface/src/events.ts b/packages/interface/src/events.ts index e0f9e486df..cd1a2f595d 100644 --- a/packages/interface/src/events.ts +++ b/packages/interface/src/events.ts @@ -106,7 +106,7 @@ export const CustomEvent = globalThis.CustomEvent ?? CustomEventPolyfill export const setMaxListeners: typeof nodeSetMaxListeners = (n, ...eventTargets) => { try { nodeSetMaxListeners(n, ...eventTargets) - } catch (e) { + } catch { // swallow error, gulp } }