diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2014-02-08 02:15:29 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2014-02-08 02:15:29 +0400 |
commit | 96379f83e0f649090caf15e8a6e016491aeca776 (patch) | |
tree | b583978d93567b3c288dfa66a3f6c749f8f9aa48 | |
parent | 2ee86c624ecd6b9dbaad10989143325fc64778cd (diff) | |
download | node-96379f83e0f649090caf15e8a6e016491aeca776.tar.gz |
Revert "dns: verify argument is valid function in resolve"
This reverts commit 2ee86c624ecd6b9dbaad10989143325fc64778cd.
-rw-r--r-- | lib/dns.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/dns.js b/lib/dns.js index dcf2128e2..15ee6a436 100644 --- a/lib/dns.js +++ b/lib/dns.js @@ -184,11 +184,9 @@ exports.resolve = function(domain, type_, callback_) { if (typeof type_ == 'string') { resolver = resolveMap[type_]; callback = callback_; - } else if (util.isFunction(type_)) { + } else { resolver = exports.resolve4; callback = type_; - } else { - throw new Error('Type must be a string') } if (typeof resolver === 'function') { |