From 07e5b30b90f176acbf78396f6b9da4c2c941d2c8 Mon Sep 17 00:00:00 2001
From: Robin Appelman <robin@icewind.nl>
Date: Thu, 24 May 2018 14:24:10 +0200
Subject: [PATCH] remove unneeded is_dir from file cache gc

Signed-off-by: Robin Appelman <robin@icewind.nl>
---
 lib/private/Cache/File.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/Cache/File.php b/lib/private/Cache/File.php
index 7d2d468ec2f..fdf7606de0f 100644
--- a/lib/private/Cache/File.php
+++ b/lib/private/Cache/File.php
@@ -174,7 +174,7 @@ class File implements ICache {
 	 */
 	public function gc() {
 		$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,
 			// because touch() is only called after the chunk was finished
 			$now = time() - 3600;
-- 
GitLab