From f04b2d43509816ecfda93aa5d0d1fd685d9b860f Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Sun, 1 Mar 2020 14:55:03 +0800 Subject: lint: fix some Golang CI lint issues (#5955) --- internal/tool/file.go | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'internal/tool/file.go') diff --git a/internal/tool/file.go b/internal/tool/file.go index 6ca4136a..169bc511 100644 --- a/internal/tool/file.go +++ b/internal/tool/file.go @@ -31,26 +31,6 @@ func IsVideoFile(data []byte) bool { return strings.Contains(http.DetectContentType(data), "video/") } -const ( - Byte = 1 - KByte = Byte * 1024 - MByte = KByte * 1024 - GByte = MByte * 1024 - TByte = GByte * 1024 - PByte = TByte * 1024 - EByte = PByte * 1024 -) - -var bytesSizeTable = map[string]uint64{ - "b": Byte, - "kb": KByte, - "mb": MByte, - "gb": GByte, - "tb": TByte, - "pb": PByte, - "eb": EByte, -} - func logn(n, b float64) float64 { return math.Log(n) / math.Log(b) } -- cgit v1.2.3