Skip to content

Commit

Permalink
fixup! event: simplify domain conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Mar 31, 2021
1 parent 110983c commit 77fd57d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ EventEmitter.prototype.emit = function emit(type, ...args) {
return false;

let needDomainExit = false;
if (domain !== null && domain !== undefined && this !== process) {
if (domain && this !== process) {
domain.enter();
needDomainExit = true;
}
Expand Down

0 comments on commit 77fd57d

Please sign in to comment.