mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-05-21 08:09:46 +08:00
chore: format code for consistency and readability
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user