Revert "dns: verify argument is valid function in resolve"

This reverts commit 2ee86c624e.
archived-io.js-v0.10
Fedor Indutny 2014-02-08 02:15:29 +04:00
parent 2ee86c624e
commit 96379f83e0
1 changed files with 1 additions and 3 deletions

View File

@ -184,11 +184,9 @@ exports.resolve = function(domain, type_, callback_) {
if (typeof type_ == 'string') { if (typeof type_ == 'string') {
resolver = resolveMap[type_]; resolver = resolveMap[type_];
callback = callback_; callback = callback_;
} else if (util.isFunction(type_)) { } else {
resolver = exports.resolve4; resolver = exports.resolve4;
callback = type_; callback = type_;
} else {
throw new Error('Type must be a string')
} }
if (typeof resolver === 'function') { if (typeof resolver === 'function') {