Skip to content
Snippets Groups Projects
Commit cfecf578 authored by ale's avatar ale
Browse files

Silence some lint warnings

parent 8a837431
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,7 @@ func (p *metricsProxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
w.Header().Set("Content-Type", "application/json")
// nolint: errcheck
json.NewEncoder(w).Encode(map[string]interface{}{
"data": data,
"labels": labels,
......
......@@ -26,7 +26,7 @@ var testAudio = []byte("trust me, I'm an mp3!")
func fakeAudioServer() (*httptest.Server, int) {
s := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
w.Write(testAudio)
w.Write(testAudio) // nolint: errcheck
}))
// Extract the port from the URL.
port := 80
......@@ -163,9 +163,9 @@ func TestServer(t *testing.T) {
cancel()
for _, s := range servers {
s.Wait()
s.Wait() // nolint: errcheck
}
for _, n := range nodes {
n.Wait()
n.Wait() // nolint: errcheck
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment