From a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Thu, 23 Nov 2017 14:22:59 +0200 Subject: cmd/puppeth: fix typos and review suggestions --- cmd/puppeth/wizard_dashboard.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cmd/puppeth/wizard_dashboard.go') 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) -- cgit v1.2.3