We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c267c85 commit 21f8624Copy full SHA for 21f8624
src/GridFS/WritableStream.php
@@ -187,11 +187,6 @@ private function abort()
187
188
private function fileCollectionInsert()
189
{
190
- if ($this->isClosed) {
191
- // TODO: Should this be an error condition? e.g. BadMethodCallException
192
- return;
193
- }
194
-
195
$md5 = hash_final($this->ctx);
196
197
$this->file['length'] = $this->length;
@@ -210,11 +205,6 @@ private function fileCollectionInsert()
210
205
211
206
private function insertChunkFromBuffer()
212
207
213
214
215
216
217
218
208
if (strlen($this->buffer) == 0) {
219
209
return;
220
}
0 commit comments