Skip to content

Commit 2af942c

Browse files
committed
fix(FileCache): Make sure to always create cache folder
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 1c1f365 commit 2af942c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Service/FileCache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ private function getStorage(): ISimpleFolder {
5050
try {
5151
$this->storage = $this->appData->getFolder('cache');
5252
} catch (NotFoundException $e) {
53-
// noop
53+
$this->storage = $this->appData->newFolder('cache');
5454
}
55-
if ($this->storage === null || !$this->storage->fileExists('/')) {
55+
if (!$this->storage->fileExists('/')) {
5656
$this->storage = $this->appData->newFolder('cache');
5757
}
5858
if (!$this->storage->fileExists('CACHEDIR.TAG')) {

0 commit comments

Comments
 (0)