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 <[email protected]>
  • Loading branch information
icewind1991 committed Jun 20, 2024
1 parent 9c4b959 commit ffced73
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 @@ -289,7 +289,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());
}

public function getAppDataDirectoryName(): string {
Expand Down

0 comments on commit ffced73

Please sign in to comment.