From e5ff238e796ee14f808aa6ad830f97b5e3d600d5 Mon Sep 17 00:00:00 2001 From: Kyoichiro Yamada Date: Thu, 13 Apr 2017 21:49:42 +0900 Subject: [PATCH] fix lints: declaration of "err" shadows declaration at realize.go:193 --- realize.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/realize.go b/realize.go index 16d3e97..c042d05 100644 --- a/realize.go +++ b/realize.go @@ -190,7 +190,7 @@ func main() { Category: "Configuration", Aliases: []string{"a"}, Usage: "Define a new config file with all options step by step", - Action: func(p *cli.Context) (err error) { + Action: func(p *cli.Context) (actErr error) { interact.Run(&interact.Interact{ Before: func(context interact.Context) error { context.SetErr(r.Red.Bold("INVALID INPUT")) @@ -862,9 +862,9 @@ func main() { }, After: func(d interact.Context) error { if val, _ := d.Qns().Get(0).Ans().Bool(); val { - err = r.Settings.Remove() - if err != nil { - return err + actErr = r.Settings.Remove() + if actErr != nil { + return actErr } } return nil