Skip to content

Commit

Permalink
remove conditions that won't happen
Browse files Browse the repository at this point in the history
  • Loading branch information
gnasnik committed May 25, 2022
1 parent efca50c commit c33f87d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmd/lotus-shed/ledger.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,6 @@ var ledgerNewAddressesCmd = &cli.Command{
return err
}

if index < 0 {
return fmt.Errorf("account index must greater than 0")
}

api, closer, err := lcli.GetFullNodeAPI(cctx)
if err != nil {
return err
Expand Down

0 comments on commit c33f87d

Please sign in to comment.