Skip to content

Commit 1609c7f

Browse files
JacksonTianMylesBorins
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 83f272d commit 1609c7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/bootstrap_node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@
290290
var caught;
291291

292292
if (process.domain && process.domain._errorHandler)
293-
caught = process.domain._errorHandler(er) || caught;
293+
caught = process.domain._errorHandler(er);
294294

295295
if (!caught)
296296
caught = process.emit('uncaughtException', er);

0 commit comments

Comments
 (0)