Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update phpdoc for circleToPrincipal
as the QueryException is already catched inside circleToPrincipal.

Signed-off-by: Daniel Kesselberg <[email protected]>
  • Loading branch information
kesselb authored and backportbot[bot] committed Nov 30, 2020
commit 04364169eda81b1fbc1e303f0cc7326b866cc167
9 changes: 1 addition & 8 deletions apps/dav/lib/Connector/Sabre/Principal.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,7 @@ public function getPrincipalByPath($path) {
return $this->userToPrincipal($user);
}
} elseif ($prefix === 'principals/circles') {
try {
return $this->circleToPrincipal($name);
} catch (QueryException $e) {
return null;
}
return $this->circleToPrincipal($name);
}
return null;
}
Expand Down Expand Up @@ -471,9 +467,6 @@ public function getPrincipalPrefix() {
/**
* @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')) {
Expand Down