mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix(storage): remove redundant stream stat guard
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user