Skip to content

Commit

Permalink
chore: fix lint error (#7152)
Browse files Browse the repository at this point in the history
Fix lint error
  • Loading branch information
nazarhussain authored and philknows committed Oct 18, 2024
1 parent a53ea37 commit f54724c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fork-choice/src/protoArray/computeDeltas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function computeDeltas(
// It is possible that there was a vote for an unknown validator if we change our justified
// state to a new state with a higher epoch that is on a different fork because that fork may have
// on-boarded fewer validators than the prior fork.
newBalance = newBalances === oldBalances ? oldBalance : newBalances[vIndex] ?? 0;
newBalance = newBalances === oldBalances ? oldBalance : (newBalances[vIndex] ?? 0);

if (equivocatingIndices.size > 0 && equivocatingIndices.has(vIndex)) {
// this function could be called multiple times but we only want to process slashing validator for 1 time
Expand Down

0 comments on commit f54724c

Please sign in to comment.