Skip to content
Permalink
Browse files

lib: remove useless default caught

The variable caught's value is undefined, so the '|| caught' is
useless.

PR-URL: #12884
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Ron Korving <ron@ronkorving.nl>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
JacksonTian authored and jasnell committed May 7, 2017
1 parent 2e3fef7 commit 824fb49a706dc8e12911d5d142aa8fc779fe59d2
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/internal/bootstrap_node.js
@@ -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);

0 comments on commit 824fb49

Please sign in to comment.
You can’t perform that action at this time.