Skip to content

Commit

Permalink
core: remove unnecessary closure (#1320)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber authored Feb 9, 2024
1 parent ae100f7 commit ff2d0f6
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions main/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,12 @@ async function start (ctx) {
childProcess.on('close', code => {
console.log(`Core closed all stdio with code ${code ?? '<no 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) => {
Expand Down

0 comments on commit ff2d0f6

Please sign in to comment.