diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-12-03 11:03:17 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-12-29 09:07:36 +0100 |
commit | 73c7d0dc8156703341733b9c39c69d05263173da (patch) | |
tree | b960b9acb15d29aa5dded5aaedbe07eda651ecc3 /lib/private/Files/ObjectStore | |
parent | 083f3d23737b99fafec87c64df99e9c09cde71c7 (diff) | |
download | nextcloud-server-73c7d0dc8156703341733b9c39c69d05263173da.tar.gz nextcloud-server-73c7d0dc8156703341733b9c39c69d05263173da.zip |
Bump icewind/streams from 0.7.1 to 0.7.2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Files/ObjectStore')
-rw-r--r-- | lib/private/Files/ObjectStore/StorageObjectStore.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/Files/ObjectStore/StorageObjectStore.php b/lib/private/Files/ObjectStore/StorageObjectStore.php index acf46758956..2076bb3f88b 100644 --- a/lib/private/Files/ObjectStore/StorageObjectStore.php +++ b/lib/private/Files/ObjectStore/StorageObjectStore.php @@ -26,6 +26,7 @@ namespace OC\Files\ObjectStore; use OCP\Files\ObjectStore\IObjectStore; use OCP\Files\Storage\IStorage; +use function is_resource; /** * Object store that wraps a storage backend, mostly for testing purposes @@ -57,11 +58,11 @@ class StorageObjectStore implements IObjectStore { */ public function readObject($urn) { $handle = $this->storage->fopen($urn, 'r'); - if ($handle) { + if (is_resource($handle)) { return $handle; - } else { - throw new \Exception(); } + + throw new \Exception(); } /** |