Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fa09ddd

Browse files
JacksonTiangibfahn
authored andcommittedJun 20, 2017
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>
1 parent a1196d1 commit fa09ddd

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
@@ -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)
Please sign in to comment.