Skip to content

Commit

Permalink
Merge pull request #44189 from nextcloud/artonge/fix/do_not_throw_exc…
Browse files Browse the repository at this point in the history
…eption_if_etag_is_not_set
  • Loading branch information
skjnldsv authored Mar 16, 2024
2 parents 1ecf3b3 + 8205de7 commit 2954d52
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 2954d52

Please sign in to comment.