From ac2a1bfeabc117164a8e1ca7e49868fe806239d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Fri, 23 Jul 2021 15:53:22 +0200 Subject: [PATCH] fix lint --- cmd/lotus-storage-miner/config.go | 5 +++-- cmd/lotus/config.go | 3 ++- node/config/cfgdocgen/gen.go | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cmd/lotus-storage-miner/config.go b/cmd/lotus-storage-miner/config.go index 30c012b9e..652426583 100644 --- a/cmd/lotus-storage-miner/config.go +++ b/cmd/lotus-storage-miner/config.go @@ -2,11 +2,12 @@ package main import ( "fmt" - "github.com/filecoin-project/lotus/node/repo" + "github.com/urfave/cli/v2" "golang.org/x/xerrors" "github.com/filecoin-project/lotus/node/config" + "github.com/filecoin-project/lotus/node/repo" ) var configCmd = &cli.Command{ @@ -51,7 +52,7 @@ var configUpdateCmd = &cli.Command{ }, }, Action: func(cctx *cli.Context) error { - r, err := repo.NewFS(cctx.String("repo")) + r, err := repo.NewFS(cctx.String(FlagMinerRepo)) if err != nil { return err } diff --git a/cmd/lotus/config.go b/cmd/lotus/config.go index c965f2fc8..fcb7e2b08 100644 --- a/cmd/lotus/config.go +++ b/cmd/lotus/config.go @@ -2,11 +2,12 @@ package main import ( "fmt" - "github.com/filecoin-project/lotus/node/repo" + "github.com/urfave/cli/v2" "golang.org/x/xerrors" "github.com/filecoin-project/lotus/node/config" + "github.com/filecoin-project/lotus/node/repo" ) var configCmd = &cli.Command{ diff --git a/node/config/cfgdocgen/gen.go b/node/config/cfgdocgen/gen.go index 50c0c291c..8d0efb65e 100644 --- a/node/config/cfgdocgen/gen.go +++ b/node/config/cfgdocgen/gen.go @@ -125,7 +125,7 @@ var Doc = map[string][]DocField{ func main() { if err := run(); err != nil { - fmt.Printf(err.Error()) + fmt.Println(err.Error()) os.Exit(1) } }