mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-29 06:49:05 +08:00
fix high scores bug unchecked error - closes #310
This commit is contained in:
@@ -66,10 +66,7 @@ func updateHighScores(txn *badger.Txn, resp checksResp, repo string) error {
|
||||
|
||||
if item != nil {
|
||||
err = item.Value(func(val []byte) error {
|
||||
err = json.Unmarshal(val, &scoreBytes)
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not unmarshal high scores: %v", err)
|
||||
}
|
||||
scoreBytes = val
|
||||
|
||||
return nil
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user