fix lint.

This commit is contained in:
Raúl Kripalani 2020-11-03 22:49:55 +00:00
parent 87ce2f774d
commit fd1439f284

View File

@ -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...))