5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-26 00:51:36 +00:00

Remove double close

This commit is contained in:
Wim 2018-02-07 00:05:10 +01:00
parent 3480c88e90
commit 2b15739b48

View File

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