Skip to content
Snippets Groups Projects
Commit c36dedcc authored by Hans Kristian Hoel's avatar Hans Kristian Hoel
Browse files

fixed crash

parent 101f8ba7
No related branches found
No related tags found
No related merge requests found
...@@ -31,9 +31,6 @@ func DoRequest(Client *http.Client, w http.ResponseWriter, API string) (*http.Re ...@@ -31,9 +31,6 @@ func DoRequest(Client *http.Client, w http.ResponseWriter, API string) (*http.Re
} }
resp, err := Client.Do(req) resp, err := Client.Do(req)
if resp != nil {
defer resp.Body.Close()
}
if err != nil { if err != nil {
http.Error(w, err.Error(), http.StatusBadRequest) http.Error(w, err.Error(), http.StatusBadRequest)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment