fix lints: declaration of "err" shadows declaration at realize.go:193

This commit is contained in:
Kyoichiro Yamada 2017-04-13 21:49:42 +09:00
parent 104e4698eb
commit e5ff238e79
1 changed files with 4 additions and 4 deletions

View File

@ -190,7 +190,7 @@ func main() {
Category: "Configuration", Category: "Configuration",
Aliases: []string{"a"}, Aliases: []string{"a"},
Usage: "Define a new config file with all options step by step", 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{ interact.Run(&interact.Interact{
Before: func(context interact.Context) error { Before: func(context interact.Context) error {
context.SetErr(r.Red.Bold("INVALID INPUT")) context.SetErr(r.Red.Bold("INVALID INPUT"))
@ -862,9 +862,9 @@ func main() {
}, },
After: func(d interact.Context) error { After: func(d interact.Context) error {
if val, _ := d.Qns().Get(0).Ans().Bool(); val { if val, _ := d.Qns().Get(0).Ans().Bool(); val {
err = r.Settings.Remove() actErr = r.Settings.Remove()
if err != nil { if actErr != nil {
return err return actErr
} }
} }
return nil return nil