worker: fix math-related issue
This commit is contained in:
parent
a4f3758f4c
commit
6dea0a6281
@ -53,7 +53,7 @@ var tasksDisableCmd = &cli.Command{
|
|||||||
|
|
||||||
func taskAction(tf func(a api.WorkerAPI, ctx context.Context, tt sealtasks.TaskType) error) func(cctx *cli.Context) error {
|
func taskAction(tf func(a api.WorkerAPI, ctx context.Context, tt sealtasks.TaskType) error) func(cctx *cli.Context) error {
|
||||||
return func(cctx *cli.Context) error {
|
return func(cctx *cli.Context) error {
|
||||||
if cctx.NArg() != 0 {
|
if cctx.NArg() != 1 {
|
||||||
return xerrors.Errorf("expected 1 argument")
|
return xerrors.Errorf("expected 1 argument")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user