diff options
author | Dariusz Olszewski <starypatyk@users.noreply.github.com> | 2022-08-22 23:03:18 +0300 |
---|---|---|
committer | Dariusz Olszewski <starypatyk@users.noreply.github.com> | 2022-08-22 23:03:30 +0300 |
commit | 78a4f6538a0f3338357363713285e9cdf12ba4c8 (patch) | |
tree | cf9dca5fba477c15c3fcd08ece6010e1e3bd507b /lib/Share | |
parent | e8bd174ddccdad989e087f8f9428e718b4bf500b (diff) |
lint
Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
Diffstat (limited to 'lib/Share')
-rw-r--r-- | lib/Share/RoomShareProvider.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Share/RoomShareProvider.php b/lib/Share/RoomShareProvider.php index 8cb178db9..1c79ca11f 100644 --- a/lib/Share/RoomShareProvider.php +++ b/lib/Share/RoomShareProvider.php @@ -652,7 +652,6 @@ class RoomShareProvider implements IShareProvider { * @throws ShareNotFound */ public function getShareById($id, $recipientId = null): IShare { - if (($recipientId === null) && isset($this->sharesByIdCache[$id])) { $share = $this->sharesByIdCache[$id]; } else { @@ -682,7 +681,6 @@ class RoomShareProvider implements IShareProvider { * @return IShare[] */ public function getSharesByIds(array $ids, ?string $recipientId = null): array { - $qb = $this->dbConnection->getQueryBuilder(); $qb->select('s.*', 'f.fileid', 'f.path', 'f.permissions AS f_permissions', 'f.storage', 'f.path_hash', @@ -700,9 +698,9 @@ class RoomShareProvider implements IShareProvider { /* * Keep retrieved shares in sharesByIdCache. - * + * * Fill the cache only when $recipientId === null. - * + * * For inaccessible shares use 'false' instead of the IShare object. * (This is required to avoid additional queries in getShareById when * the share refers to a deleted file.) |