Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Revert "dns: validate arguments in resolve"
Browse files Browse the repository at this point in the history
This reverts commit 56e80a3.
  • Loading branch information
indutny committed Feb 7, 2014
1 parent 96379f8 commit d10a687
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
5 changes: 0 additions & 5 deletions lib/dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,6 @@ function resolver(bindingName) {
if (!status) {
callback(null, result);
} else {
if (!util.isString(name))
throw new Error('Name must be a string')
else if (!util.isFunction(callback))
throw new Error('Callback must be a function')

callback(errnoException(process._errno, bindingName));
}
}
Expand Down
27 changes: 0 additions & 27 deletions test/simple/test-dns-regress-7070.js

This file was deleted.

0 comments on commit d10a687

Please sign in to comment.