summaryrefslogtreecommitdiff
path: root/lib/tls.js
diff options
context:
space:
mode:
authorMichaƫl Zasso <mic.besace@gmail.com>2016-01-12 22:04:50 +0100
committerRoman Reiss <me@silverwind.io>2016-01-13 23:16:05 +0100
commit7ce0e04f44306c45ea52bfac17fab7e11693c4df (patch)
treee400e48dc49e703e7c8d27f679ebd3c8e09c32e8 /lib/tls.js
parent4d5ee7a512a944062baf88325dfa4668e95345d5 (diff)
downloadandroid-node-v8-7ce0e04f44306c45ea52bfac17fab7e11693c4df.tar.gz
android-node-v8-7ce0e04f44306c45ea52bfac17fab7e11693c4df.tar.bz2
android-node-v8-7ce0e04f44306c45ea52bfac17fab7e11693c4df.zip
lib: fix style issues after eslint update
With an indentation style of two spaces, it is not possible to indent multiline variable declarations by four spaces. Instead, the var keyword is used on every new line. Use const instead of var where applicable for changed lines. PR-URL: https://github.com/nodejs/io.js/pull/2286 Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'lib/tls.js')
-rw-r--r--lib/tls.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/tls.js b/lib/tls.js
index 24062832a5..1abeb77873 100644
--- a/lib/tls.js
+++ b/lib/tls.js
@@ -105,12 +105,12 @@ exports.checkServerIdentity = function checkServerIdentity(host, cert) {
return new RegExp('^' + re + '$', 'i');
}
- var dnsNames = [],
- uriNames = [],
- ips = [],
- matchCN = true,
- valid = false,
- reason = 'Unknown reason';
+ var dnsNames = [];
+ var uriNames = [];
+ const ips = [];
+ var matchCN = true;
+ var valid = false;
+ var reason = 'Unknown reason';
// There're several names to perform check against:
// CN and altnames in certificate extension