Changing to if args.present

Changing to if args.present
This commit is contained in:
Phi 2023-05-03 19:03:54 +02:00
parent f094e61b4a
commit 034888c58e

View File

@ -388,6 +388,10 @@ var ChainSetHeadCmd = &cli.Command{
defer closer()
ctx := ReqContext(cctx)
if cctx.Args().Present() {
return IncorrectNumArgs(cctx)
}
var ts *types.TipSet
if cctx.Bool("genesis") {