Skip to content

Commit e14d2a8

Browse files
committed
Remove error check in OutputStream._write
1 parent 67dd85f commit e14d2a8

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/streams.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ OutputStream.prototype._close = function (hadError) {
7979
};
8080

8181
OutputStream.prototype._write = function (chunk, encoding, callback) {
82-
if (!this._open) {
83-
callback(new Error("Output stream is not open"));
84-
return;
85-
}
86-
8782
var chunks = [];
8883

8984
if (!Buffer.isBuffer(chunk)) {

0 commit comments

Comments
 (0)