removed var declaration

pull/18625/head
absolutelightning 2023-08-31 15:47:22 +05:30
parent 37155cdc2a
commit c7971c9884
1 changed files with 1 additions and 3 deletions

View File

@ -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