Skip to content

Commit b8aceac

Browse files
telenordMylesBorins
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 7cbdac9 commit b8aceac

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
@@ -126,7 +126,7 @@ IncomingMessage.prototype.destroy = function destroy(error) {
126126
IncomingMessage.prototype._addHeaderLines = _addHeaderLines;
127127
function _addHeaderLines(headers, n) {
128128
if (headers && headers.length) {
129-
var dest;
129+
let dest;
130130
if (this.complete) {
131131
this.rawTrailers = headers;
132132
dest = this.trailers;
@@ -135,7 +135,7 @@ function _addHeaderLines(headers, n) {
135135
dest = this.headers;
136136
}
137137

138-
for (var i = 0; i < n; i += 2) {
138+
for (let i = 0; i < n; i += 2) {
139139
this._addHeaderLine(headers[i], headers[i + 1], dest);
140140
}
141141
}

0 commit comments

Comments
 (0)