Skip to content

Commit 2ece4fe

Browse files
telenordtargos
telenord
authored andcommitted
http: http_common rename var to let and const
PR-URL: #30288 Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent c199570 commit 2ece4fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/_http_common.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function parserOnHeadersComplete(versionMajor, versionMinor, headers, method,
9595
incoming.url = url;
9696
incoming.upgrade = upgrade;
9797

98-
var n = headers.length;
98+
let n = headers.length;
9999

100100
// If parser.maxHeaderPairs <= 0 assume that there's no limit.
101101
if (parser.maxHeaderPairs > 0)
@@ -124,8 +124,8 @@ function parserOnBody(b, start, len) {
124124

125125
// Pretend this was the result of a stream._read call.
126126
if (len > 0 && !stream._dumped) {
127-
var slice = b.slice(start, start + len);
128-
var ret = stream.push(slice);
127+
const slice = b.slice(start, start + len);
128+
const ret = stream.push(slice);
129129
if (!ret)
130130
readStop(this.socket);
131131
}

0 commit comments

Comments
 (0)