Skip to content

Commit

Permalink
fix: composer psalm error via pointing correct folder
Browse files Browse the repository at this point in the history
Signed-off-by: codewithvk <[email protected]>
  • Loading branch information
codewithvk committed Jan 31, 2025
1 parent c1b7b54 commit 2587a10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Service/SettingsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

namespace OCA\Richdocuments\Service;

use OC\Files\Node\Folder;
use OCA\Richdocuments\AppInfo\Application;
use OCA\Richdocuments\Db\WopiMapper;
use OCA\Richdocuments\WOPI\SettingsUrl;
use OCP\Files\Folder;
use OCP\Files\IAppData;
use OCP\Files\IRootFolder;
use OCP\Files\NotFoundException;
Expand Down Expand Up @@ -218,6 +218,9 @@ private function getCategoryDirFolderList(string $type) : array {
}
$rootFolder = $this->rootFolder;
$folder = $rootFolder->get('appdata_' . $instanceId . '/richdocuments' . '/' . $type);
if (!$folder instanceof Folder) {
return [];
}
return $folder->getDirectoryListing();
} catch (NotFoundException $e) {
return [];
Expand Down

0 comments on commit 2587a10

Please sign in to comment.