Skip to content

Commit

Permalink
ref(node): Don't return after process.exit (#4512)
Browse files Browse the repository at this point in the history
Any code after `process.exit(1)` is unreachable, so this return
statement does nothing. We can remove it safely.
  • Loading branch information
AbhiPrasad committed Feb 7, 2022
1 parent 800de09 commit 52520ba
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/node/src/integrations/utils/errorhandling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export function logAndExitProcess(error: Error): void {
if (client === undefined) {
logger.warn('No NodeClient was defined, we are exiting the process now.');
global.process.exit(1);
return;
}

const options = client.getOptions();
Expand Down

0 comments on commit 52520ba

Please sign in to comment.