Commit 21f8624d authored by Jeremy Mikola's avatar Jeremy Mikola

Remove redundant isClosed checks in private WritableStream methods

parent c267c858
...@@ -187,11 +187,6 @@ class WritableStream ...@@ -187,11 +187,6 @@ class WritableStream
private function fileCollectionInsert() private function fileCollectionInsert()
{ {
if ($this->isClosed) {
// TODO: Should this be an error condition? e.g. BadMethodCallException
return;
}
$md5 = hash_final($this->ctx); $md5 = hash_final($this->ctx);
$this->file['length'] = $this->length; $this->file['length'] = $this->length;
...@@ -210,11 +205,6 @@ class WritableStream ...@@ -210,11 +205,6 @@ class WritableStream
private function insertChunkFromBuffer() private function insertChunkFromBuffer()
{ {
if ($this->isClosed) {
// TODO: Should this be an error condition? e.g. BadMethodCallException
return;
}
if (strlen($this->buffer) == 0) { if (strlen($this->buffer) == 0) {
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment