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

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pull/43131/head
Christoph Wurst 4 months ago
parent b71c037246
commit 7e5303bec7
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8

@ -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;

Loading…
Cancel
Save