Skip to content

Commit 7102ee6

Browse files
committed
use es6 destructuring for index
1 parent 3eec305 commit 7102ee6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/blockchain/src/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,10 +488,8 @@ export default class Blockchain implements BlockchainInterface {
488488

489489
await this.dbManager.batch(dbOps)
490490
// Output active signers for debugging purposes
491-
let i = 0
492-
for (const signer of this.cliqueActiveSigners()) {
491+
for (const [i, signer] of this.cliqueActiveSigners().entries()) {
493492
debug(`Clique signer [${i}]: ${signer}`)
494-
i++
495493
}
496494
}
497495

0 commit comments

Comments
 (0)