cmd/geth: fix gosimple

This commit is contained in:
Felix Lange 2019-11-14 00:03:47 +01:00
parent 3e1da96f8f
commit 599dcd69b3

View file

@ -232,12 +232,8 @@ func init() {
app.Flags = append(app.Flags, metricsFlags...) app.Flags = append(app.Flags, metricsFlags...)
app.Before = func(ctx *cli.Context) error { app.Before = func(ctx *cli.Context) error {
if err := debug.Setup(ctx, ""); err != nil { return debug.Setup(ctx, "")
return err
}
return nil
} }
app.After = func(ctx *cli.Context) error { app.After = func(ctx *cli.Context) error {
debug.Exit() debug.Exit()
console.Stdin.Close() // Resets terminal mode. console.Stdin.Close() // Resets terminal mode.