From fd1439f284b0e4c184417186bad30ef6b725386a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Kripalani?= Date: Tue, 3 Nov 2020 22:49:55 +0000 Subject: [PATCH] fix lint. --- cmd/lotus-bench/import.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/lotus-bench/import.go b/cmd/lotus-bench/import.go index af42eeec3..0aa4d1c4b 100644 --- a/cmd/lotus-bench/import.go +++ b/cmd/lotus-bench/import.go @@ -407,8 +407,8 @@ var importBenchCmd = &cli.Command{ ) if tsk := cctx.String("start-tipset"); tsk != "" { - cids, err := lcli.ParseTipSetString(tsk) - if err != nil { + var cids []cid.Cid + if cids, err = lcli.ParseTipSetString(tsk); err != nil { return xerrors.Errorf("failed to start genesis tipset key: %w", err) } start, err = cs.LoadTipSet(types.NewTipSetKey(cids...))