Fixed static analysis error

This commit is contained in:
Chris Kankiewicz
2021-02-23 21:45:26 -07:00
parent c033956f88
commit 27f3473c51

View File

@@ -16,7 +16,7 @@ class SizeForHumans extends ViewFunction
try {
$fileSize = $file->getSize();
} catch (RuntimeException $exception) {
return 0;
return '0B';
}
$sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];