Skip to content

Commit

Permalink
[squash] bnoordhuis comments
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Jan 4, 2018
1 parent 904e18a commit 0cf413b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/internal/wrap_js_stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class JSStreamWrap extends Socket {
this[kCurrentWriteRequest] = null;
this[kCurrentShutdownRequest] = null;

// Start reading
// Start reading.
this.read(0);
}

Expand Down Expand Up @@ -141,8 +141,8 @@ class JSStreamWrap extends Socket {
let pending = bufs.length;

this.stream.cork();
for (var i = 0; i < bufs.length; i++)
this.stream.write(bufs[i], done);
for (const buf of bufs)
this.stream.write(buf, done);
this.stream.uncork();

function done(err) {
Expand Down

0 comments on commit 0cf413b

Please sign in to comment.