From b798f598af72570ff3ea04b5468898b86019796b 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 588dce3139e378..3e7bcc2d5522d0 100644 --- a/lib/tls.js +++ b/lib/tls.js @@ -135,9 +135,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];