chore: format code for consistency and readability

This commit is contained in:
krau
2026-03-05 17:20:45 +08:00
parent 70f7172162
commit f377ee3ca4
4 changed files with 15 additions and 14 deletions

View File

@@ -42,7 +42,7 @@ func FormatSize(bytes int64) string {
MB = KB * 1024
GB = MB * 1024
)
switch {
case bytes >= GB:
return fmt.Sprintf("%.2f GB", float64(bytes)/float64(GB))