Skip to content

Commit

Permalink
Do not throw an exception if the etag is not set in metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Mar 14, 2024
1 parent d3da21b commit 3fe77a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/FilesMetadata/Model/FilesMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function setEditPermission(string $key, int $permission): void {

public function getEtag(string $key): string {
if (!array_key_exists($key, $this->metadata)) {
throw new FilesMetadataNotFoundException();
return '';
}

return $this->metadata[$key]->getEtag();
Expand Down

0 comments on commit 3fe77a6

Please sign in to comment.