fix(storage): remove redundant stream stat guard

This commit is contained in:
Torsten Dittmann
2026-05-11 17:14:52 +04:00
parent d3b3615a92
commit f8ae25b570
+1 -1
View File
@@ -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');
}