Skip to content

Commit 824fb49

Browse files
JacksonTianjasnell
authored andcommitted
lib: remove useless default caught
The variable caught's value is undefined, so the '|| caught' is useless. PR-URL: #12884 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Ron Korving <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 2e3fef7 commit 824fb49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/bootstrap_node.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@
297297
var caught;
298298

299299
if (process.domain && process.domain._errorHandler)
300-
caught = process.domain._errorHandler(er) || caught;
300+
caught = process.domain._errorHandler(er);
301301

302302
if (!caught)
303303
caught = process.emit('uncaughtException', er);

0 commit comments

Comments
 (0)