diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-11-23 20:22:59 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-11-23 20:22:59 +0800 |
commit | a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d (patch) | |
tree | 9c776ad507336517680ce447e2649c6e38fca29a /cmd/puppeth/wizard_dashboard.go | |
parent | b169a309f9f22eff18a66b4e3a97dd0184a946e8 (diff) | |
download | dexon-a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d.tar dexon-a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d.tar.gz dexon-a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d.tar.bz2 dexon-a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d.tar.lz dexon-a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d.tar.xz dexon-a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d.tar.zst dexon-a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d.zip |
cmd/puppeth: fix typos and review suggestions
Diffstat (limited to 'cmd/puppeth/wizard_dashboard.go')
-rw-r--r-- | cmd/puppeth/wizard_dashboard.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/puppeth/wizard_dashboard.go b/cmd/puppeth/wizard_dashboard.go index 278b5533a..5f781c415 100644 --- a/cmd/puppeth/wizard_dashboard.go +++ b/cmd/puppeth/wizard_dashboard.go @@ -33,16 +33,15 @@ func (w *wizard) deployDashboard() { client := w.servers[server] // Retrieve any active dashboard configurations from the server - existed := true - infos, err := checkDashboard(client, w.network) if err != nil { infos = &dashboardInfos{ port: 80, host: client.server, } - existed = false } + existed := err == nil + // Figure out which port to listen on fmt.Println() fmt.Printf("Which port should the dashboard listen on? (default = %d)\n", infos.port) |