From 90bcf58b295aea6dda076e875971c03fbb786f2a Mon Sep 17 00:00:00 2001 From: gfanton <8671905+gfanton@users.noreply.github.com> Date: Mon, 20 Nov 2023 15:48:54 +0100 Subject: [PATCH] chore: lint Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com> --- gnovm/cmd/gno/env.go | 9 --------- tm2/pkg/crypto/keys/client/root.go | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/gnovm/cmd/gno/env.go b/gnovm/cmd/gno/env.go index 17f26f1694e..4ccd1873c3f 100644 --- a/gnovm/cmd/gno/env.go +++ b/gnovm/cmd/gno/env.go @@ -41,15 +41,6 @@ type envVar struct { Value string } -func getEnvVar(vars []envVar, key string) string { - for _, env := range vars { - if env.Key == key { - return env.Value - } - } - return "" -} - func findEnv(env []envVar, name string) string { for _, e := range env { if e.Key == name { diff --git a/tm2/pkg/crypto/keys/client/root.go b/tm2/pkg/crypto/keys/client/root.go index efee1e649ed..e6e09345153 100644 --- a/tm2/pkg/crypto/keys/client/root.go +++ b/tm2/pkg/crypto/keys/client/root.go @@ -53,7 +53,7 @@ func NewRootCmd(io commands.IO) *commands.Command { } func (c *baseCfg) RegisterFlags(fs *flag.FlagSet) { - var homedir = gnoenv.HomeDir() + homedir := gnoenv.HomeDir() // Base options fs.StringVar(