summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-02-07 00:05:10 +0100
committerWim <wim@42.be>2018-02-07 00:05:10 +0100
commit2b15739b485a80c3cf20f171494b1c377814379d (patch)
tree2047e27936490b5d2019c8c92635cba679c2852c
parent3480c88e904c6234309ed20c88aff7d0a684e87f (diff)
downloadmatterbridge-msglm-2b15739b485a80c3cf20f171494b1c377814379d.tar.gz
matterbridge-msglm-2b15739b485a80c3cf20f171494b1c377814379d.tar.bz2
matterbridge-msglm-2b15739b485a80c3cf20f171494b1c377814379d.zip
Remove double close
-rw-r--r--bridge/helper/helper.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/bridge/helper/helper.go b/bridge/helper/helper.go
index 9522823b..10c3647a 100644
--- a/bridge/helper/helper.go
+++ b/bridge/helper/helper.go
@@ -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
}