From 96379f83e0f649090caf15e8a6e016491aeca776 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Sat, 8 Feb 2014 02:15:29 +0400 Subject: [PATCH] Revert "dns: verify argument is valid function in resolve" This reverts commit 2ee86c624ecd6b9dbaad10989143325fc64778cd. --- lib/dns.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/dns.js b/lib/dns.js index dcf2128e28..15ee6a4362 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') {