Skip to content

Commit 1a967a8

Browse files
committed
fix(lint): check w.Write return value in client_test.go
1 parent 952ce5b commit 1a967a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/client/client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func TestUnit_NegotiateVersion(t *testing.T) {
201201
case "/api/api_version":
202202
w.Header().Set("Content-Type", "application/json")
203203
w.WriteHeader(http.StatusOK)
204-
w.Write([]byte(`{"versions":["2.12","2.22"]}`))
204+
_, _ = w.Write([]byte(`{"versions":["2.12","2.22"]}`))
205205
default:
206206
w.WriteHeader(http.StatusNotFound)
207207
}
@@ -230,7 +230,7 @@ func TestUnit_NegotiateVersion_Missing(t *testing.T) {
230230
case "/api/api_version":
231231
w.Header().Set("Content-Type", "application/json")
232232
w.WriteHeader(http.StatusOK)
233-
w.Write([]byte(`{"versions":["2.12","2.15"]}`))
233+
_, _ = w.Write([]byte(`{"versions":["2.12","2.15"]}`))
234234
default:
235235
w.WriteHeader(http.StatusNotFound)
236236
}

0 commit comments

Comments
 (0)