Skip to content

Commit 7d2aa2b

Browse files
committed
fixup! fix: add INodeByPath to Directory [wip]
Signed-off-by: Salvatore Martire <[email protected]>
1 parent 585d568 commit 7d2aa2b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

apps/dav/lib/Connector/Sabre/Directory.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,7 @@ public function getNodeForPath($path) {
528528

529529
$node = new File($this->fileView, $info, $this->shareManager);
530530
}
531-
if ($this->tree) {
532-
$this->tree->cacheNode($node);
533-
}
531+
$this->tree?->cacheNode($node);
534532
return $node;
535533
}
536534
}

0 commit comments

Comments
 (0)