Skip to content
Snippets Groups Projects
Unverified Commit 07e5b30b authored by Robin Appelman's avatar Robin Appelman
Browse files

remove unneeded is_dir from file cache gc


Signed-off-by: default avatarRobin Appelman <robin@icewind.nl>
parent fd4a7bf7
No related branches found
No related tags found
No related merge requests found
...@@ -174,7 +174,7 @@ class File implements ICache { ...@@ -174,7 +174,7 @@ class File implements ICache {
*/ */
public function gc() { public function gc() {
$storage = $this->getStorage(); $storage = $this->getStorage();
if ($storage and $storage->is_dir('/')) { if ($storage) {
// extra hour safety, in case of stray part chunks that take longer to write, // extra hour safety, in case of stray part chunks that take longer to write,
// because touch() is only called after the chunk was finished // because touch() is only called after the chunk was finished
$now = time() - 3600; $now = time() - 3600;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment