Skip to content
Permalink
Browse files

fs: change var to let

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 MylesBorins committed Nov 12, 2019
1 parent d077550 commit 1a83c654f9c1d385d1c5bd3f296eb88993c3b978
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/internal/fs/streams.js
@@ -337,7 +337,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;

0 comments on commit 1a83c65

Please sign in to comment.
You can’t perform that action at this time.