diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-01-25 09:50:26 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-01-25 16:53:35 +0100 |
commit | 5cca86ce1946d68c688b3adbd34f379627138368 (patch) | |
tree | f3cd68628c4ee58d16690e90e2ba32b3356e3045 /lib | |
parent | 35dcda36a35e15ce44dfef15724b9d5392f14346 (diff) | |
download | nextcloud-server-5cca86ce1946d68c688b3adbd34f379627138368.tar.gz nextcloud-server-5cca86ce1946d68c688b3adbd34f379627138368.zip |
Remove redundant if clause
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Storage/DAV.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php index a065f55ae08..b4a85755b20 100644 --- a/lib/private/Files/Storage/DAV.php +++ b/lib/private/Files/Storage/DAV.php @@ -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'])) { |