Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Co-authored-by: James Sumners <[email protected]>
  • Loading branch information
ronag and jsumners authored Aug 22, 2024
1 parent bd1d1b5 commit f5a68a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -642,9 +642,9 @@ function actualWriteBuffer () {
// fs.write will need to copy string to buffer anyway so
// we do it here to avoid the overhead of calculating the buffer size
// in releaseWritingBuf.
if (kCopyBuffer) {
this._writingBuf = Buffer.from(this._writingBuf)
}
if (kCopyBuffer) {
this._writingBuf = Buffer.from(this._writingBuf)
}
fs.write(this.fd, this._writingBuf, release)
}
}
Expand Down

0 comments on commit f5a68a2

Please sign in to comment.