worker: fix math-related issue

This commit is contained in:
Łukasz Magiera 2020-11-30 23:19:16 +01:00
parent a4f3758f4c
commit 6dea0a6281

View File

@ -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")
} }