mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-25 23:06:39 +02:00
Fixed static analysis error
This commit is contained in:
@@ -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'];
|
||||
|
Reference in New Issue
Block a user