Skip to content

Commit 5c0ab46

Browse files
NamPNQkrisk
authored andcommitted
fix: double totalWeight
We call `totalWeight += obj.weight` two times, so the `totalWeight` is double
1 parent 7ff9c2f commit 5c0ab46

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/tools/KeyStore.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ export default class KeyStore {
1313
keys.forEach((key) => {
1414
let obj = createKey(key)
1515

16-
totalWeight += obj.weight
17-
1816
this._keys.push(obj)
1917
this._keyMap[obj.id] = obj
2018

0 commit comments

Comments
 (0)