summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2020-10-23 21:12:15 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2020-11-26 09:00:04 +0100
commitefef6e9b784da39a8676e3f9ec721c8659aaf9e6 (patch)
tree7cd23d9e410753ac535004042e9cfc813ed8f6c4 /apps/dav
parent3f4fb9dc89016e701678d6310281705a92fbe3e6 (diff)
downloadnextcloud-server-efef6e9b784da39a8676e3f9ec721c8659aaf9e6.tar.gz
nextcloud-server-efef6e9b784da39a8676e3f9ec721c8659aaf9e6.zip
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')) {