From ff2d0f63633979fd5001c19d716a2375db298d44 Mon Sep 17 00:00:00 2001 From: Julian Gruber Date: Fri, 9 Feb 2024 08:52:45 -0800 Subject: [PATCH] core: remove unnecessary closure (#1320) --- main/core.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/main/core.js b/main/core.js index 3849a7163..26b69df86 100644 --- a/main/core.js +++ b/main/core.js @@ -127,14 +127,12 @@ async function start (ctx) { childProcess.on('close', code => { console.log(`Core closed all stdio with code ${code ?? ''}`) - ;(async () => { - Sentry.captureException('Core exited', scope => { - // Sentry UI can't show the full 100 lines - scope.setExtra('logs', logs.getLast(10)) - scope.setExtra('reason', exitReason) - return scope - }) - })() + Sentry.captureException('Core exited', scope => { + // Sentry UI can't show the full 100 lines + scope.setExtra('logs', logs.getLast(10)) + scope.setExtra('reason', exitReason) + return scope + }) }) childProcess.on('exit', (code, signal) => {