go fmt ./client.go

This commit is contained in:
emad22552 2022-01-02 19:08:22 +03:30 committed by GitHub
parent 4eaf89666f
commit 135186e33d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -356,9 +356,9 @@ The minimum value is 518400 (6 months).`,
&CidBaseFlag,
},
Action: func(cctx *cli.Context) error {
expectedArgsMsg := "expected 4 args: dataCid, miner, price, duration"
if !cctx.Args().Present() {
if cctx.Bool("manual-stateless-deal") {
return xerrors.New("--manual-stateless-deal can not be combined with interactive deal mode: you must specify the " + expectedArgsMsg)