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: Сковорода Никита Андреевич <[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]>
  • Loading branch information
telenord authored and MylesBorins committed Nov 17, 2019
1 parent 7cbdac9 commit b8aceac
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 @@ -126,7 +126,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 @@ -135,7 +135,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 b8aceac

Please sign in to comment.