Skip to content

Commit

Permalink
fix: also use optimized getFirstNodeyIdInPath for Folder::getFirstNod…
Browse files Browse the repository at this point in the history
…eById

Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 authored and backportbot[bot] committed Jun 21, 2024
1 parent 91ecdc7 commit bf8a73c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Node/Folder.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public function getById($id) {
}

public function getFirstNodeById(int $id): ?\OCP\Files\Node {
return current($this->getById($id)) ?: null;
return $this->root->getFirstNodeByIdInPath($id, $this->getPath());
}

protected function getAppDataDirectoryName(): string {
Expand Down

0 comments on commit bf8a73c

Please sign in to comment.