mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-23 11:28:12 +02:00
Removing unneeded comments
This commit is contained in:
@@ -138,9 +138,6 @@ func CreateTimeLimitCode(data string, minutes int, startInf interface{}) string
|
||||
|
||||
// FileSize calculates the file size and generate user-friendly string.
|
||||
func FileSize(s int64) string {
|
||||
// sizes := []string{"B", "kB", "MB", "GB", "TB", "PB", "EB"}
|
||||
// return humanize.humanateBytes(uint64(s), 1000, sizes)
|
||||
// return humanize.Bytes(uint64(s))
|
||||
return humanize.IBytes(uint64(s))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user