Skip to content

Commit c722335

Browse files
committed
tls: fix minor jslint failure
PR-URL: #9107 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent caae3e7 commit c722335

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/tls.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,10 @@ function check(hostParts, pattern, wildcards) {
117117
return false;
118118

119119
// Check host parts from right to left first.
120-
for (var i = hostParts.length - 1; i > 0; i -= 1)
120+
for (var i = hostParts.length - 1; i > 0; i -= 1) {
121121
if (hostParts[i] !== patternParts[i])
122122
return false;
123+
}
123124

124125
var hostSubdomain = hostParts[0];
125126
var patternSubdomain = patternParts[0];

0 commit comments

Comments
 (0)