Skip to content

Commit

Permalink
fs: change var to let
Browse files Browse the repository at this point in the history
PR-URL: #30407
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
alvarp authored and addaleax committed Nov 30, 2019
1 parent 8a9ee48 commit 8ee27ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/fs/streams.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ WriteStream.prototype._writev = function(data, cb) {
const chunks = new Array(len);
let size = 0;

for (var i = 0; i < len; i++) {
for (let i = 0; i < len; i++) {
const chunk = data[i].chunk;

chunks[i] = chunk;
Expand Down

0 comments on commit 8ee27ff

Please sign in to comment.