fix(files): Do not throw an exception if the etag is not set in metadata

Signed-off-by: Louis Chemineau <louis@chmn.me>
pull/44189/head
Louis Chemineau 3 months ago
parent d3da21b10a
commit 8205de75c7
No known key found for this signature in database

@ -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();

Loading…
Cancel
Save