Skip to content

Commit

Permalink
avoid overwriting the error
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Dec 24, 2024
1 parent 8ef2f8d commit e210c1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/staking/keeper/delegation.go
Original file line number Diff line number Diff line change
Expand Up @@ -858,8 +858,8 @@ func (k Keeper) getBeginInfo(
return completionTime, height, false, nil
}
headerInfo := k.HeaderService.HeaderInfo(ctx)
unbondingTime, err := k.UnbondingTime(ctx)
if err != nil {
unbondingTime, err2 := k.UnbondingTime(ctx)
if err2 != nil {
return completionTime, height, false, err
}

Expand Down

0 comments on commit e210c1c

Please sign in to comment.