Skip to content

Commit

Permalink
fix: double totalWeight
Browse files Browse the repository at this point in the history
We call `totalWeight += obj.weight` two times, so the `totalWeight` is double
  • Loading branch information
NamPNQ authored and krisk committed Aug 23, 2022
1 parent 7ff9c2f commit 5c0ab46
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/tools/KeyStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ export default class KeyStore {
keys.forEach((key) => {
let obj = createKey(key)

totalWeight += obj.weight

this._keys.push(obj)
this._keyMap[obj.id] = obj

Expand Down

0 comments on commit 5c0ab46

Please sign in to comment.