Merge pull request #17616 from nextcloud/bug/15486/dont-fclose

Remove superfluous fclose
This commit is contained in:
Roeland Jago Douma 2019-10-23 19:51:17 +02:00 committed by GitHub
commit 4c83e9ce5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -685,7 +685,6 @@ class AmazonS3 extends \OC\Files\Storage\Common {
$source = fopen($tmpFile, 'r');
$this->writeObject($path, $source);
$this->invalidateCache($path);
fclose($source);
unlink($tmpFile);
return true;