diff options
author | Rich Trott <rtrott@gmail.com> | 2017-06-21 00:37:00 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-06-24 00:43:20 +0300 |
commit | 095c0de94d818088cacf2c33ad4913768c15024a (patch) | |
tree | 77eb0aaffa2aa80ba1240280a716eb64c4a7ff1d /lib/tls.js | |
parent | e3ea0fc97bf3a911463275446024b50e8bae865f (diff) |
benchmark,lib,test: use braces for multiline block
For if/else and loops where the bodies span more than one line, use
curly braces.
PR-URL: https://github.com/nodejs/node/pull/13828
Ref: https://github.com/nodejs/node/pull/13623#discussion_r123048602
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/tls.js')
-rw-r--r-- | lib/tls.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tls.js b/lib/tls.js index 2247bb9ee56..5a03c3c30f8 100644 --- a/lib/tls.js +++ b/lib/tls.js @@ -122,9 +122,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; + } const hostSubdomain = hostParts[0]; const patternSubdomain = patternParts[0]; |