diff --git a/assignment2/functions.go b/assignment2/functions.go index 61d89a47cd5098e28a1d419f67482c8d55da8ac2..e5d04cfc2e898a311d23b8c9251dc03d67d7dbe5 100644 --- a/assignment2/functions.go +++ b/assignment2/functions.go @@ -31,9 +31,6 @@ func DoRequest(Client *http.Client, w http.ResponseWriter, API string) (*http.Re } resp, err := Client.Do(req) - if resp != nil { - defer resp.Body.Close() - } if err != nil { http.Error(w, err.Error(), http.StatusBadRequest) }