Skip to content

Commit 1cf5241

Browse files
fix(webhook): handle linter errcheck on test response write
Signed-off-by: Arunesh Dwivedi <arunesh.devops@gmail.com>
1 parent c101316 commit 1cf5241

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/webhook/webhook_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func TestCallClosesResponseBodyOnRetry(t *testing.T) {
8484
closed := 0
8585
testServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
8686
w.WriteHeader(http.StatusInternalServerError)
87-
w.Write([]byte("boom"))
87+
_, _ = w.Write([]byte("boom"))
8888
}))
8989
defer testServer.Close()
9090

0 commit comments

Comments
 (0)