Merge pull request #44189 from nextcloud/artonge/fix/do_not_throw_exception_if_etag_is_not_set

This commit is contained in:
John Molakvoæ 2024-03-16 14:09:57 +01:00 committed by GitHub
commit 2954d52ac8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -159,7 +159,7 @@ class FilesMetadata implements IFilesMetadata {
public function getEtag(string $key): string {
if (!array_key_exists($key, $this->metadata)) {
throw new FilesMetadataNotFoundException();
return '';
}
return $this->metadata[$key]->getEtag();