Skip to content

Commit d024630

Browse files
Kyriakos Markakisaddaleax
authored andcommitted
lib: change var to let in stream_base_commons
PR-URL: #30426 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[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 3c041ed commit d024630

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

‎lib/internal/stream_base_commons.js‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,15 @@ function createWriteWrap(handle){
111111
functionwritevGeneric(self,data,cb){
112112
constreq=createWriteWrap(self[kHandle]);
113113
constallBuffers=data.allBuffers;
114-
varchunks;
115-
vari;
114+
letchunks;
116115
if(allBuffers){
117116
chunks=data;
118-
for(i=0;i<data.length;i++)
117+
for(leti=0;i<data.length;i++)
119118
data[i]=data[i].chunk;
120119
}else{
121120
chunks=newArray(data.length<<1);
122-
for(i=0;i<data.length;i++){
123-
varentry=data[i];
121+
for(leti=0;i<data.length;i++){
122+
constentry=data[i];
124123
chunks[i*2]=entry.chunk;
125124
chunks[i*2+1]=entry.encoding;
126125
}

0 commit comments

Comments
(0)