Skip to content

Commit 9b2dc9c

Browse files
authored
Update readable.go
1 parent e3d5f50 commit 9b2dc9c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

readable/readable.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package cxfmtreadable
22

33
import (
4+
"math"
45
"strconv"
56
"time"
67
)
@@ -80,7 +81,6 @@ func FormatNumberCompact(num int64, buf []byte) []byte {
8081

8182
// Adjust the number to one decimal place and format
8283
value = math.Round(value*10) / 10
83-
startIndex := len(buf)
8484
buf = strconv.AppendFloat(buf, value, 'f', 1, 64)
8585

8686
// Remove unnecessary decimal and zero if integer value
@@ -93,4 +93,3 @@ func FormatNumberCompact(num int64, buf []byte) []byte {
9393

9494
return buf
9595
}
96-

0 commit comments

Comments
 (0)