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 <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 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)