Skip to content

Commit

Permalink
Remove unused variable (#706)
Browse files Browse the repository at this point in the history
Co-authored-by: Joe Bowman <[email protected]>
  • Loading branch information
neitdung and Joe Bowman authored Oct 17, 2023
1 parent 5adcf20 commit 6595291
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions x/interchainstaking/keeper/ibc_packet_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,12 +467,10 @@ func (k *Keeper) HandleWithdrawForUser(ctx sdk.Context, zone *types.Zone, msg *b

if len(dlist) > 0 {
newDist := make([]*types.Distribution, 0)
i := 0
for idx := range withdrawalRecord.Distribution {
if _, remove := dlist[idx]; !remove {
newDist = append(newDist, withdrawalRecord.Distribution[idx])
}
i++
}
k.Logger(ctx).Info("found matching withdrawal; awaiting additional messages")
withdrawalRecord.Distribution = newDist
Expand Down

0 comments on commit 6595291

Please sign in to comment.