Skip to content

Commit

Permalink
Merge pull request #43131 from nextcloud/fix/files/cache-wrapper-no-p…
Browse files Browse the repository at this point in the history
…artial-cache-entry-formatting

fix(files): Don't attempt to format a partial cache entry
  • Loading branch information
ChristophWurst authored Feb 6, 2024
2 parents 57d1245 + 7e5303b commit 67a3ab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Cache/Wrapper/CacheWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected function formatCacheEntry($entry) {
*/
public function get($file) {
$result = $this->getCache()->get($file);
if ($result) {
if ($result instanceof ICacheEntry) {
$result = $this->formatCacheEntry($result);
}
return $result;
Expand Down

0 comments on commit 67a3ab4

Please sign in to comment.