Fix all errors from golangci-lint command

Signed-off-by: Arjun Naik <arjun.rn@gmail.com>
This commit is contained in:
Arjun Naik
2019-04-27 15:35:08 +02:00
parent 7c848a1282
commit 888e76b748
11 changed files with 43 additions and 36 deletions
+2 -1
View File
@@ -131,7 +131,8 @@ func TestQuery(tt *testing.T) {
ts := httptest.NewServer(http.HandlerFunc(
func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(ti.status)
w.Write([]byte(ti.body))
_, err := w.Write([]byte(ti.body))
assert.NoError(t, err)
}),
)
defer ts.Close()