Skip to content

Commit

Permalink
Follow-up second fix
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed May 8, 2020
1 parent 9d9c561 commit a9f8938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ export default class Request extends Duplex implements RequestEvents<Request> {
// `options.dnsCache`
if (options.dnsCache === true) {
options.dnsCache = new CacheableLookup();
} else if (!is.undefined(options.dnsCache) && options.dnsCache !== false && !(options.dnsCache instanceof CacheableLookup)) {
} else if (!is.undefined(options.dnsCache) && !(options.dnsCache instanceof CacheableLookup)) {
throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${is(options.dnsCache)}`);
}

Expand Down

0 comments on commit a9f8938

Please sign in to comment.