Skip to content

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
Original file line number Diff line number Diff line change
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

0 comments on commit e3c5019

Please sign in to comment.