Skip to content

Commit

Permalink
Update lib/internal/fs/sync_write_stream.js
Browse files Browse the repository at this point in the history
Co-authored-by: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
killagu and lpinca authored Jun 26, 2023
1 parent 021f107 commit dd12bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/fs/sync_write_stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ SyncWriteStream.prototype._write = function(chunk, encoding, cb) {
writeSync(this.fd, chunk, 0, chunk.length);
} catch (e) {
cb(e);
return true;
return;
}
cb();
return true;
Expand Down

0 comments on commit dd12bf0

Please sign in to comment.