Skip to content

Commit

Permalink
tls: fix minor jslint failure
Browse files Browse the repository at this point in the history
PR-URL: #9107
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
rvagg committed Oct 18, 2016
1 parent 703a906 commit b798f59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/tls.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit b798f59

Please sign in to comment.