Skip to content

Commit

Permalink
feat: make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZexiao committed Aug 14, 2023
1 parent 20292df commit bc25271
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -737,13 +737,13 @@ var StateComputeStateCmd = &cmds.Command{
height := abi.ChainEpoch(h)
var ts *types.TipSet
var err error
chainApi := getEnv(env).ChainAPI
chainAPI := getEnv(env).ChainAPI
if tss := req.Options["tipset"].(string); tss != "" {
ts, err = ParseTipSetRef(ctx, chainApi, tss)
ts, err = ParseTipSetRef(ctx, chainAPI, tss)
} else if height > 0 {
ts, err = chainApi.ChainGetTipSetByHeight(ctx, height, types.EmptyTSK)
ts, err = chainAPI.ChainGetTipSetByHeight(ctx, height, types.EmptyTSK)
} else {
ts, err = chainApi.ChainHead(ctx)
ts, err = chainAPI.ChainHead(ctx)
}
if err != nil {
return err
Expand Down

0 comments on commit bc25271

Please sign in to comment.