From efef6e9b784da39a8676e3f9ec721c8659aaf9e6 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Fri, 23 Oct 2020 21:12:15 +0200 Subject: [PATCH] Update phpdoc for circleToPrincipal as the QueryException is already catched inside circleToPrincipal. Signed-off-by: Daniel Kesselberg --- apps/dav/lib/Connector/Sabre/Principal.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/apps/dav/lib/Connector/Sabre/Principal.php b/apps/dav/lib/Connector/Sabre/Principal.php index 1ddbc1a608..14bb879863 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')) {