Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 62ed7fdd5638722562f87a617f6938eb1cbcd7ff Author: Wim <wim@42.be> Date: Wed Feb 07 00:05:10 2018 +0000 Remove double close diff --git a/bridge/helper/helper.go b/bridge/helper/helper.go index 9522823..10c3647 100644 --- a/bridge/helper/helper.go +++ b/bridge/helper/helper.go @@ -257 +256 @@ func DownloadFile(url string) (*[]byte, error) {   defer resp.Body.Close()   io.Copy(&buf, resp.Body)   data := buf.Bytes() - resp.Body.Close()   return &data, nil  }