remove conditions that won't happen

This commit is contained in:
frank 2022-05-25 11:03:04 +08:00
parent efca50c146
commit c33f87d5b4

View File

@ -308,10 +308,6 @@ var ledgerNewAddressesCmd = &cli.Command{
return err return err
} }
if index < 0 {
return fmt.Errorf("account index must greater than 0")
}
api, closer, err := lcli.GetFullNodeAPI(cctx) api, closer, err := lcli.GetFullNodeAPI(cctx)
if err != nil { if err != nil {
return err return err