More linting

This commit is contained in:
Kegan Dougal 2020-04-15 15:52:20 +01:00
parent deee80f93a
commit ca8268e69e

View file

@ -76,8 +76,9 @@ func MakeExternalAPI(metricsName string, f func(*http.Request) util.JSONResponse
} }
} }
w.WriteHeader(resp.StatusCode) w.WriteHeader(resp.StatusCode)
// discard errors as this is for debugging
_, _ = io.Copy(w, resp.Body) _, _ = io.Copy(w, resp.Body)
resp.Body.Close() _ = resp.Body.Close()
}() }()
// Log incoming request // Log incoming request