mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
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:
parent
510510b73d
commit
ae53b140dc
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue