From 934c66fb86553e5b749cd489c43a688432f4443a Mon Sep 17 00:00:00 2001 From: Jackson Tian Date: Mon, 8 May 2017 02:01:02 +0800 Subject: [PATCH] lib: remove useless default caught The variable caught's value is undefined, so the '|| caught' is useless. --- lib/internal/bootstrap_node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/bootstrap_node.js b/lib/internal/bootstrap_node.js index 038e71502bdb1a..daeee2d375212a 100644 --- a/lib/internal/bootstrap_node.js +++ b/lib/internal/bootstrap_node.js @@ -308,7 +308,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);