Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0fd89cc

Browse filesBrowse files
Driesssaddaleax
authored andcommitted
lib: replace var with let/const
PR-URL: #30409 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent bdba03e commit 0fd89cc
Copy full SHA for 0fd89cc

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎lib/tls.js‎

Copy file name to clipboardExpand all lines: lib/tls.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ function convertProtocols(protocols) {
109109
return p + 1 + len;
110110
}, 0));
111111

112-
var offset = 0;
113-
for (var i = 0, c = protocols.length; i < c; i++) {
112+
let offset = 0;
113+
for (let i = 0, c = protocols.length; i < c; i++) {
114114
buff[offset++] = lens[i];
115115
buff.write(protocols[i], offset);
116116
offset += lens[i];
@@ -163,7 +163,7 @@ function check(hostParts, pattern, wildcards) {
163163
return false;
164164

165165
// Check host parts from right to left first.
166-
for (var i = hostParts.length - 1; i > 0; i -= 1) {
166+
for (let i = hostParts.length - 1; i > 0; i -= 1) {
167167
if (hostParts[i] !== patternParts[i])
168168
return false;
169169
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.