mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Remove redundant if clause
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
35dcda36a3
commit
5cca86ce19
1 changed files with 1 additions and 4 deletions
|
|
@ -792,10 +792,7 @@ class DAV extends Common {
|
|||
}
|
||||
if (isset($response['{DAV:}getetag'])) {
|
||||
$cachedData = $this->getCache()->get($path);
|
||||
$etag = null;
|
||||
if (isset($response['{DAV:}getetag'])) {
|
||||
$etag = trim($response['{DAV:}getetag'], '"');
|
||||
}
|
||||
$etag = trim($response['{DAV:}getetag'], '"');
|
||||
if (($cachedData === false) || (!empty($etag) && ($cachedData['etag'] !== $etag))) {
|
||||
return true;
|
||||
} elseif (isset($response['{http://open-collaboration-services.org/ns}share-permissions'])) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue