From 260f41f2cce67c8c4898a008e1ac269227fb8cdc Mon Sep 17 00:00:00 2001 From: Miguel Angel Asencio Hurtado Date: Wed, 12 Oct 2016 09:50:00 +0200 Subject: [PATCH] dns: name anonymous functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ref: https://github.com/nodejs/node/issues/8913 PR-URL: https://github.com/nodejs/node/pull/9052 Reviewed-By: Evan Lucas Reviewed-By: Michaƫl Zasso Reviewed-By: Franziska Hinkelmann Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- lib/dns.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dns.js b/lib/dns.js index a993593810e59e..4767acbab6041f 100644 --- a/lib/dns.js +++ b/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();