Skip to content

Commit

Permalink
removed var declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
absolutelightning committed Aug 31, 2023
1 parent 37155cd commit c7971c9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions command/snapshot/save/snapshot_save.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7971c9

Please sign in to comment.