diff options
author | Osmond van Hemert <osmond@vanhemert.nu> | 2019-11-12 18:24:03 +0300 |
---|---|---|
committer | Gireesh Punathil <gpunathi@in.ibm.com> | 2019-11-24 10:41:43 +0300 |
commit | 1a7add76a916a1a2e084b2bece4d5a4f33d05372 (patch) | |
tree | 5cc31541915214d370188da4b1486cb0086f7f91 /lib/internal/dns | |
parent | 20ac129d04826610cc9cab2ab2a2f7fee203c085 (diff) |
test: dns utils replace var
PR-URL: https://github.com/nodejs/node/pull/30405
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'lib/internal/dns')
-rw-r--r-- | lib/internal/dns/utils.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/dns/utils.js b/lib/internal/dns/utils.js index 70097663546..226d134680a 100644 --- a/lib/internal/dns/utils.js +++ b/lib/internal/dns/utils.js @@ -52,7 +52,7 @@ class Resolver { if (typeof serv !== 'string') { throw new ERR_INVALID_ARG_TYPE(`servers[${index}]`, 'string', serv); } - var ipVersion = isIP(serv); + let ipVersion = isIP(serv); if (ipVersion !== 0) return newSet.push([ipVersion, serv, IANA_DNS_PORT]); |