Skip to content

Commit

Permalink
http: http_incoming rename var to let and const
Browse files Browse the repository at this point in the history
PR-URL: #30285
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
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>
  • Loading branch information
telenord authored and targos committed Dec 1, 2019
1 parent b5625f6 commit 70cf4d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/_http_incoming.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ IncomingMessage.prototype.destroy = function destroy(error) {
IncomingMessage.prototype._addHeaderLines = _addHeaderLines;
function _addHeaderLines(headers, n) {
if (headers && headers.length) {
var dest;
let dest;
if (this.complete) {
this.rawTrailers = headers;
dest = this.trailers;
Expand All @@ -119,7 +119,7 @@ function _addHeaderLines(headers, n) {
dest = this.headers;
}

for (var i = 0; i < n; i += 2) {
for (let i = 0; i < n; i += 2) {
this._addHeaderLine(headers[i], headers[i + 1], dest);
}
}
Expand Down

0 comments on commit 70cf4d2

Please sign in to comment.