Skip to content

Commit

Permalink
fix(files): Don't attempt to format a partial cache entry
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
  • Loading branch information
ChristophWurst authored and backportbot[bot] committed Feb 6, 2024
1 parent b84ee66 commit d4e01fb
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 d4e01fb

Please sign in to comment.