mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #44189 from nextcloud/artonge/fix/do_not_throw_exception_if_etag_is_not_set
This commit is contained in:
commit
2954d52ac8
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue