Skip to content

Commit 70cf4d2

Browse files
telenordtargos
telenord
authored andcommitted
http: http_incoming rename var to let and const
PR-URL: #30285 Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent b5625f6 commit 70cf4d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/_http_incoming.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ IncomingMessage.prototype.destroy = function destroy(error) {
110110
IncomingMessage.prototype._addHeaderLines = _addHeaderLines;
111111
function _addHeaderLines(headers, n) {
112112
if (headers && headers.length) {
113-
var dest;
113+
let dest;
114114
if (this.complete) {
115115
this.rawTrailers = headers;
116116
dest = this.trailers;
@@ -119,7 +119,7 @@ function _addHeaderLines(headers, n) {
119119
dest = this.headers;
120120
}
121121

122-
for (var i = 0; i < n; i += 2) {
122+
for (let i = 0; i < n; i += 2) {
123123
this._addHeaderLine(headers[i], headers[i + 1], dest);
124124
}
125125
}

0 commit comments

Comments
 (0)