Skip to content

Commit

Permalink
Improve variable declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
diogonicoleti committed Nov 29, 2017
1 parent 0304785 commit 8e63f7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions newrelic/application_instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (c *Client) ListInstances(applicationID int) ([]ApplicationInstance, error)
return nil, err
}

appInstances := &listInstancesResponse{}
_, err = c.do(req, appInstances)
return appInstances.Instances, err
var response listInstancesResponse
_, err = c.do(req, response)
return response.Instances, err
}

0 comments on commit 8e63f7c

Please sign in to comment.