mirror of https://github.com/hashicorp/consul
removed var declaration
parent
37155cdc2a
commit
c7971c9884
|
@ -73,10 +73,8 @@ func (c *cmd) Run(args []string) int {
|
|||
|
||||
appendFileNameFlags := strings.Split(c.appendFileNameFlag.String(), ",")
|
||||
|
||||
var agentSelfResponse map[string]map[string]interface{}
|
||||
|
||||
if len(appendFileNameFlags) != 0 {
|
||||
agentSelfResponse, err = client.Agent().Self()
|
||||
agentSelfResponse, err := client.Agent().Self()
|
||||
if err != nil {
|
||||
c.UI.Error(fmt.Sprintf("Error connecting to Consul agent and fetching datacenter/version: %s", err))
|
||||
return 1
|
||||
|
|
Loading…
Reference in New Issue