fix(files): Don't attempt to format a partial cache entry

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2024-01-25 19:30:38 +01:00 committed by backportbot[bot]
parent b84ee66baa
commit d4e01fb0a1

View file

@ -91,7 +91,7 @@ class CacheWrapper extends Cache {
*/
public function get($file) {
$result = $this->getCache()->get($file);
if ($result) {
if ($result instanceof ICacheEntry) {
$result = $this->formatCacheEntry($result);
}
return $result;