Skip to content

Commit 52520ba

Browse files
authored
ref(node): Don't return after process.exit (getsentry#4512)
Any code after `process.exit(1)` is unreachable, so this return statement does nothing. We can remove it safely.
1 parent 800de09 commit 52520ba

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/node/src/integrations/utils/errorhandling.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export function logAndExitProcess(error: Error): void {
1717
if (client === undefined) {
1818
logger.warn('No NodeClient was defined, we are exiting the process now.');
1919
global.process.exit(1);
20-
return;
2120
}
2221

2322
const options = client.getOptions();

0 commit comments

Comments
 (0)