From c722335ead9211fc0254f33f4b6edff2ccf50ade Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Sat, 15 Oct 2016 22:32:49 +1100 Subject: [PATCH] tls: fix minor jslint failure PR-URL: https://github.com/nodejs/node/pull/9107 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- lib/tls.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tls.js b/lib/tls.js index 082891c0760302..200a0dd9fec565 100644 --- a/lib/tls.js +++ b/lib/tls.js @@ -117,9 +117,10 @@ function check(hostParts, pattern, wildcards) { return false; // Check host parts from right to left first. - for (var i = hostParts.length - 1; i > 0; i -= 1) + for (var i = hostParts.length - 1; i > 0; i -= 1) { if (hostParts[i] !== patternParts[i]) return false; + } var hostSubdomain = hostParts[0]; var patternSubdomain = patternParts[0];