Skip to content
Snippets Groups Projects
Unverified Commit efef6e9b authored by Daniel Kesselberg's avatar Daniel Kesselberg
Browse files

Update phpdoc for circleToPrincipal


as the QueryException is already catched inside circleToPrincipal.

Signed-off-by: default avatarDaniel Kesselberg <mail@danielkesselberg.de>
parent 3f4fb9dc
No related branches found
No related tags found
No related merge requests found
......@@ -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')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment