mirror of
https://github.com/nextcloud/server.git
synced 2026-06-27 01:20:37 -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
dae47de64f
commit
89526bfab3
1 changed files with 1 additions and 1 deletions
|
|
@ -382,7 +382,7 @@ class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess {
|
|||
*/
|
||||
#[\Override]
|
||||
public function getChecksum() {
|
||||
return $this->data['checksum'];
|
||||
return return $this->data['checksum'] ?? '';
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
|
|
|
|||
Loading…
Reference in a new issue