Skip to content

Commit

Permalink
style: (tiny) rename variable to avoid shadowing (#1654)
Browse files Browse the repository at this point in the history
rename var to avoid shadowing
  • Loading branch information
insumity authored Feb 21, 2024
1 parent c2a7b57 commit 6d09487
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/ccv/provider/keeper/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,11 @@ func (k Keeper) QueueVSCPackets(ctx sdk.Context) {
// Get the validator updates from the staking module.
// Note: GetValidatorUpdates panics if the updates provided by the x/staking module
// of cosmos-sdk is invalid.
valUpdates := k.stakingKeeper.GetValidatorUpdates(ctx)
stakingValUpdates := k.stakingKeeper.GetValidatorUpdates(ctx)

for _, chain := range k.GetAllConsumerChains(ctx) {
// Apply the key assignment to the validator updates.
valUpdates := k.MustApplyKeyAssignmentToValUpdates(ctx, chain.ChainId, valUpdates)
valUpdates := k.MustApplyKeyAssignmentToValUpdates(ctx, chain.ChainId, stakingValUpdates)

// check whether there are changes in the validator set;
// note that this also entails unbonding operations
Expand Down

0 comments on commit 6d09487

Please sign in to comment.