Permalink
Browse files

dns: name anonymous functions

Ref: #8913
PR-URL: #9052
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information...
maasencioh authored and jasnell committed Oct 12, 2016
1 parent 3b63b64 commit 260f41f2cce67c8c4898a008e1ac269227fb8cdc
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/dns.js
@@ -181,7 +181,7 @@ function onlookupservice(err, host, service) {


// lookupService(address, port, callback)
exports.lookupService = function(host, port, callback) {
exports.lookupService = function lookupService(host, port, callback) {
if (arguments.length !== 3)
throw new Error('Invalid arguments');

@@ -257,7 +257,7 @@ exports.resolveSoa = resolveMap.SOA = resolver('querySoa');
exports.reverse = resolver('getHostByAddr');


exports.resolve = function(hostname, type_, callback_) {
exports.resolve = function resolve(hostname, type_, callback_) {
var resolver, callback;
if (typeof type_ === 'string') {
resolver = resolveMap[type_];
@@ -277,12 +277,12 @@ exports.resolve = function(hostname, type_, callback_) {
};


exports.getServers = function() {
exports.getServers = function getServers() {
return cares.getServers();
};


exports.setServers = function(servers) {
exports.setServers = function setServers(servers) {
// cache the original servers because in the event of an error setting the
// servers cares won't have any servers available for resolution
const orig = cares.getServers();

0 comments on commit 260f41f

Please sign in to comment.