Skip to content

Commit

Permalink
process,worker: ensure code after exit() effectless
Browse files Browse the repository at this point in the history
remove unused error

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
ywave620 and aduh95 committed Dec 3, 2022
1 parent ad562e1 commit f3b73e2
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -16,8 +16,7 @@ if (isMainThread) {
try {
process.exit();
throw new Error('xxx');
// eslint-disable-next-line no-unused-vars
} catch (err) {
} catch {
workerData[0] = 1;
}
}

0 comments on commit f3b73e2

Please sign in to comment.