Skip to content

Commit

Permalink
do not shadow return value
Browse files Browse the repository at this point in the history
  • Loading branch information
attilaolah authored and rcrowley committed Jul 26, 2014
1 parent 0f75ec0 commit 1f6faa4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion librato/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ func (self *LibratoClient) PostMetrics(batch Batch) (err error) {

if resp.StatusCode != http.StatusOK {
var body []byte
var err error
if body, err = ioutil.ReadAll(resp.Body); err != nil {
body = []byte(fmt.Sprintf("(could not fetch response body for error: %s)", err))
}
Expand Down

0 comments on commit 1f6faa4

Please sign in to comment.