Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gitferry committed Dec 21, 2022
1 parent e933b84 commit c4ebd57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/checkpointing/keeper/grpc_query_checkpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ func (k Keeper) LastCheckpointWithStatus(ctx context.Context, req *types.QueryLa
if err != nil {
return nil, fmt.Errorf("failed to get the last checkpointed epoch number: %w", err)
}
for e := tipCheckpointedEpoch; e >= 0; e-- {
ckpt, err := k.GetRawCheckpoint(sdkCtx, e)
for e := int(tipCheckpointedEpoch); e >= 0; e-- {
ckpt, err := k.GetRawCheckpoint(sdkCtx, uint64(e))
if err != nil {
return nil, fmt.Errorf("failed to get the raw checkpoint at epoch %v: %w", e, err)
}
Expand Down

0 comments on commit c4ebd57

Please sign in to comment.