aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/ObjectStore
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-12-03 11:03:17 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-12-29 09:07:36 +0100
commit73c7d0dc8156703341733b9c39c69d05263173da (patch)
treeb960b9acb15d29aa5dded5aaedbe07eda651ecc3 /lib/private/Files/ObjectStore
parent083f3d23737b99fafec87c64df99e9c09cde71c7 (diff)
downloadnextcloud-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.php7
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();
}
/**