summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache/Cache.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-25 23:01:03 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-25 23:01:03 +0100
commit16a558871cf371aec59dfb2ec7b672f0a4ab166f (patch)
tree564754363d080c57dd115aeab26c5d3cda4ea13b /lib/private/Files/Cache/Cache.php
parentb9bbb894f8b01e000bb5e3a8a82db7bebad3ea00 (diff)
downloadnextcloud-server-16a558871cf371aec59dfb2ec7b672f0a4ab166f.tar.gz
nextcloud-server-16a558871cf371aec59dfb2ec7b672f0a4ab166f.zip
Use proper code flow instead of not needed else branch
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Files/Cache/Cache.php')
-rw-r--r--lib/private/Files/Cache/Cache.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php
index cf017c73960..428f52fd9ef 100644
--- a/lib/private/Files/Cache/Cache.php
+++ b/lib/private/Files/Cache/Cache.php
@@ -208,9 +208,8 @@ class Cache implements ICache {
return array_map(function (array $data) {
return self::cacheEntryFromData($data, $this->mimetypeLoader);;
}, $files);
- } else {
- return array();
}
+ return [];
}
/**