Fixed errcheck issues (#28405)

This commit is contained in:
Arya Khochare
2024-10-02 15:32:49 +02:00
committed by GitHub
parent 1690e48db6
commit 9c2a9c7f26
2 changed files with 2 additions and 2 deletions
-1
View File
@@ -83,7 +83,6 @@ issues:
channels/api4/group_local.go|\
channels/api4/group_test.go|\
channels/api4/handlers_test.go|\
channels/api4/image_test.go|\
channels/api4/import_test.go|\
channels/api4/integration_action.go|\
channels/api4/integration_action_test.go|\
+2 -1
View File
@@ -75,7 +75,8 @@ func TestGetImage(t *testing.T) {
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "image/png")
w.Write([]byte("success"))
_, err := w.Write([]byte("success"))
require.NoError(t, err)
})
imageServer := httptest.NewServer(handler)