diff --git a/lib/dns.js b/lib/dns.js index 3fd5184d83..7c76aebb97 100644 --- a/lib/dns.js +++ b/lib/dns.js @@ -56,9 +56,6 @@ function errnoException(err, syscall, hostname) { // callback.immediately = true; // } function makeAsync(callback) { - if (typeof callback !== 'function') { - return callback; - } return function asyncCallback() { if (asyncCallback.immediately) { // The API already returned, we can invoke the callback immediately.