mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix(files): Do not throw an exception if the etag is not set in metadata
Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
d3da21b10a
commit
8205de75c7
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