fix: error from golangci-lint tool (#623)

This commit is contained in:
Bo-Yi Wu
2021-08-03 14:44:00 +08:00
committed by GitHub
parent 349c0c8c1d
commit 0a8d801380
15 changed files with 74 additions and 164 deletions

View File

@@ -1,7 +1,6 @@
package badger
import (
"fmt"
"log"
"os"
"strconv"
@@ -84,7 +83,7 @@ func (s *Storage) getBadger(key string, count *int64) {
return err
}
i, err := strconv.ParseInt(fmt.Sprintf("%s", val), 10, 64)
i, err := strconv.ParseInt(string(val), 10, 64)
if err != nil {
return err
}