fix miner terminate cli arg checks

This commit is contained in:
Łukasz Magiera 2021-01-14 16:14:24 +01:00
parent 4015ddbb4f
commit 4a114150f0

View File

@ -444,9 +444,6 @@ var sectorsTerminateFlushCmd = &cli.Command{
}
defer closer()
ctx := lcli.ReqContext(cctx)
if cctx.Args().Len() != 1 {
return xerrors.Errorf("must pass sector number")
}
mcid, err := nodeApi.SectorTerminateFlush(ctx)
if err != nil {
@ -471,9 +468,6 @@ var sectorsTerminatePendingCmd = &cli.Command{
}
defer closer()
ctx := lcli.ReqContext(cctx)
if cctx.Args().Len() != 1 {
return xerrors.Errorf("must pass sector number")
}
pending, err := nodeApi.SectorTerminatePending(ctx)
if err != nil {