Skip to content

Commit 19a53e3

Browse files
committed
chore: Remove useless check in dav app
Signed-off-by: Côme Chilliet <[email protected]>
1 parent 743cae2 commit 19a53e3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

apps/dav/lib/Files/RootCollection.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
*/
88
namespace OCA\DAV\Files;
99

10-
use OCP\Files\FileInfo;
1110
use OCP\Files\IRootFolder;
1211
use OCP\IUserSession;
1312
use OCP\Server;
@@ -37,9 +36,6 @@ public function getChildForPrincipal(array $principalInfo) {
3736
return new SimpleCollection($name);
3837
}
3938
$userFolder = Server::get(IRootFolder::class)->getUserFolder($user->getUID());
40-
if (!($userFolder instanceof FileInfo)) {
41-
throw new \Exception('Home does not exist');
42-
}
4339
return new FilesHome($principalInfo, $userFolder);
4440
}
4541

0 commit comments

Comments
 (0)