From 2b15739b485a80c3cf20f171494b1c377814379d Mon Sep 17 00:00:00 2001 From: Wim Date: Wed, 7 Feb 2018 00:05:10 +0100 Subject: Remove double close --- bridge/helper/helper.go | 1 - 1 file changed, 1 deletion(-) 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 } -- cgit v1.2.3