aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/FilesMetadata/Model/FilesMetadata.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/FilesMetadata/Model/FilesMetadata.php')
-rw-r--r--lib/private/FilesMetadata/Model/FilesMetadata.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/FilesMetadata/Model/FilesMetadata.php b/lib/private/FilesMetadata/Model/FilesMetadata.php
index 3de72357431..41ede3ef2d3 100644
--- a/lib/private/FilesMetadata/Model/FilesMetadata.php
+++ b/lib/private/FilesMetadata/Model/FilesMetadata.php
@@ -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();