Remove double close

pull/390/head
Wim 7 years ago
parent 3480c88e90
commit 2b15739b48

@ -25,7 +25,6 @@ func DownloadFile(url string) (*[]byte, error) {
defer resp.Body.Close()
io.Copy(&buf, resp.Body)
data := buf.Bytes()
resp.Body.Close()
return &data, nil
}

Loading…
Cancel
Save