Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps/dav
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2020-10-23 22:12:15 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-11-30 12:02:02 +0300
commit04364169eda81b1fbc1e303f0cc7326b866cc167 (patch)
tree2484ed950faa0ce29c8b112c819783052658c375 /apps/dav
parentae3bfb97c3ba2af40b7e5da2ea7035717a4d1722 (diff)
Update phpdoc for circleToPrincipal
as the QueryException is already catched inside circleToPrincipal. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/Connector/Sabre/Principal.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Principal.php b/apps/dav/lib/Connector/Sabre/Principal.php
index 1ddbc1a6083..14bb8798630 100644
--- a/apps/dav/lib/Connector/Sabre/Principal.php
+++ b/apps/dav/lib/Connector/Sabre/Principal.php
@@ -178,11 +178,7 @@ class Principal implements BackendInterface {
return $this->userToPrincipal($user);
}
} elseif ($prefix === 'principals/circles') {
- try {
- return $this->circleToPrincipal($name);
- } catch (QueryException $e) {
- return null;
- }
+ return $this->circleToPrincipal($name);
}
return null;
}
@@ -471,9 +467,6 @@ class Principal implements BackendInterface {
/**
* @param string $circleUniqueId
* @return array|null
- * @throws \OCP\AppFramework\QueryException
- * @suppress PhanUndeclaredClassMethod
- * @suppress PhanUndeclaredClassCatch
*/
protected function circleToPrincipal($circleUniqueId) {
if (!$this->appManager->isEnabledForUser('circles') || !class_exists('\OCA\Circles\Api\v1\Circles')) {