mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
Revert "dns: verify argument is valid function in resolve"
This reverts commit 2ee86c624e
.
This commit is contained in:
parent
2ee86c624e
commit
96379f83e0
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user