From f8ae25b570a2310aefb3bb6ac8e20fde510df8b4 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Mon, 11 May 2026 17:14:52 +0400 Subject: [PATCH] fix(storage): remove redundant stream stat guard --- app/controllers/shared/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index ff9f49a0f5..28efd07216 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -732,7 +732,7 @@ Http::init() if (! $isImageTransformation || ! $isDisabled) { Span::add('storage.cache.hit', true); $stat = \fstat($data); - if ($stat === false || ! isset($stat['size'])) { + if ($stat === false) { throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Failed to read cached response stream metadata'); }