瀏覽代碼

Merge pull request #14114 from HuKeping/master

Remove useless conversion
Alexander Morozov 10 年之前
父節點
當前提交
9b5875eb9d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pkg/units/size.go

+ 1 - 1
pkg/units/size.go

@@ -51,7 +51,7 @@ func CustomSize(format string, size float64, base float64, _map []string) string
 // HumanSize returns a human-readable approximation of a size
 // using SI standard (eg. "44kB", "17MB")
 func HumanSize(size float64) string {
-	return CustomSize("%.4g %s", float64(size), 1000.0, decimapAbbrs)
+	return CustomSize("%.4g %s", size, 1000.0, decimapAbbrs)
 }
 
 func BytesSize(size float64) string {