fix(FileInfo): harden getChecksum()

- `checksum` is already optional/derived metadata in practice
- callers already treat `null`l / `''` as "no checksum"

Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
Josh 2026-05-18 08:35:20 -04:00 committed by backportbot[bot]
parent 510510b73d
commit ae53b140dc

View file

@ -368,7 +368,7 @@ class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess {
* @inheritdoc
*/
public function getChecksum() {
return $this->data['checksum'];
return return $this->data['checksum'] ?? '';
}
public function getExtension(): string {