Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
domains: properly check if domains are being used
Browse files Browse the repository at this point in the history
process.domain is almost never just undefined, so it was setting the
object property unnecessarily.
  • Loading branch information
trevnorris committed Aug 6, 2013
1 parent 166c405 commit e3c5019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/req_wrap.h
Expand Up @@ -47,7 +47,7 @@ class ReqWrap {
->ToObject()
->Get(domain_symbol);

if (!domain->IsUndefined()) {
if (domain->IsObject()) {
object->Set(domain_symbol, domain);
}
}
Expand Down

1 comment on commit e3c5019

@bnoordhuis
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Please sign in to comment.