mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-30 03:03:43 +00:00
Remove double close
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user