From 27f3473c51016406b560143cc53c2688942f42a1 Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Tue, 23 Feb 2021 21:45:26 -0700 Subject: [PATCH] Fixed static analysis error --- app/src/ViewFunctions/SizeForHumans.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/ViewFunctions/SizeForHumans.php b/app/src/ViewFunctions/SizeForHumans.php index 8b92ad2..a9bf09e 100644 --- a/app/src/ViewFunctions/SizeForHumans.php +++ b/app/src/ViewFunctions/SizeForHumans.php @@ -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'];