Skip to content

Commit 907bf90

Browse files
committed
fix(storage): Fix DAV storage as false is never returned
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent cc67cc5 commit 907bf90

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/private/Files/Storage/DAV.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -470,9 +470,6 @@ public function touch($path, $mtime = null) {
470470
$this->client->proppatch($this->encodePath($path), ['{DAV:}lastmodified' => $mtime]);
471471
// non-owncloud clients might not have accepted the property, need to recheck it
472472
$response = $this->client->propfind($this->encodePath($path), ['{DAV:}getlastmodified'], 0);
473-
if ($response === false) {
474-
return false;
475-
}
476473
if (isset($response['{DAV:}getlastmodified'])) {
477474
$remoteMtime = strtotime($response['{DAV:}getlastmodified']);
478475
if ($remoteMtime !== $mtime) {
@@ -911,9 +908,6 @@ public function getDirectoryContent($directory): \Traversable {
911908
self::PROPFIND_PROPS,
912909
1
913910
);
914-
if ($responses === false) {
915-
return;
916-
}
917911

918912
array_shift($responses); //the first entry is the current directory
919913
if (!$this->statCache->hasKey($directory)) {

0 commit comments

Comments
 (0)