Skip to content
This repository has been archived by the owner on Apr 11, 2021. It is now read-only.

Commit

Permalink
Remove defer from PR
Browse files Browse the repository at this point in the history
  • Loading branch information
jimen0 authored and yanc0 committed Jun 13, 2017
1 parent 50b06cf commit 65d1031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beeping.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,13 @@ func CheckHTTP(check *Check) (*Response, error) {
if err != nil {
return nil, err
}
defer res.Body.Close()

body, err := ioutil.ReadAll(res.Body)
if err != nil {
return nil, err
}

res.Body.Close()
timeEndBody := time.Now()
result.End(timeEndBody)
var total = result.Total(timeEndBody)
Expand Down

0 comments on commit 65d1031

Please sign in to comment.