Skip to content

Commit 52b7207

Browse files
committed
chore: Remove useless check in dav app
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 981eafb commit 52b7207

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

apps/dav/lib/Files/RootCollection.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
namespace OCA\DAV\Files;
1010

11-
use OCP\Files\FileInfo;
1211
use OCP\Files\IRootFolder;
1312
use OCP\IUserSession;
1413
use OCP\Server;
@@ -39,9 +38,6 @@ public function getChildForPrincipal(array $principalInfo) {
3938
return new SimpleCollection($name);
4039
}
4140
$userFolder = Server::get(IRootFolder::class)->getUserFolder($user->getUID());
42-
if (!($userFolder instanceof FileInfo)) {
43-
throw new \Exception('Home does not exist');
44-
}
4541
return new FilesHome($principalInfo, $userFolder);
4642
}
4743

0 commit comments

Comments
 (0)