Skip to content

Commit

Permalink
lib: remove useless default caught
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
JacksonTian authored and jasnell committed May 9, 2017
1 parent 2e3fef7 commit 824fb49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/bootstrap_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
var caught;

if (process.domain && process.domain._errorHandler)
caught = process.domain._errorHandler(er) || caught;
caught = process.domain._errorHandler(er);

if (!caught)
caught = process.emit('uncaughtException', er);
Expand Down

0 comments on commit 824fb49

Please sign in to comment.