Merge pull request #9584 from nextcloud/file-cache-gc-isdir

remove unneeded is_dir from file cache gc
This commit is contained in:
Morris Jobke 2018-05-28 11:36:19 +02:00 committed by GitHub
commit 188b96d521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;