fix high scores bug unchecked error - closes #310

This commit is contained in:
Shawn Smith
2020-02-11 17:46:53 +09:00
parent 4df79763a6
commit 961b4ebe98

View File

@@ -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
})