Fixed errcheck issues (#28405)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
1690e48db6
Коммит
9c2a9c7f26
@@ -83,7 +83,6 @@ issues:
|
|||||||
channels/api4/group_local.go|\
|
channels/api4/group_local.go|\
|
||||||
channels/api4/group_test.go|\
|
channels/api4/group_test.go|\
|
||||||
channels/api4/handlers_test.go|\
|
channels/api4/handlers_test.go|\
|
||||||
channels/api4/image_test.go|\
|
|
||||||
channels/api4/import_test.go|\
|
channels/api4/import_test.go|\
|
||||||
channels/api4/integration_action.go|\
|
channels/api4/integration_action.go|\
|
||||||
channels/api4/integration_action_test.go|\
|
channels/api4/integration_action_test.go|\
|
||||||
|
|||||||
@@ -75,7 +75,8 @@ func TestGetImage(t *testing.T) {
|
|||||||
|
|
||||||
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||||
w.Header().Set("Content-Type", "image/png")
|
w.Header().Set("Content-Type", "image/png")
|
||||||
w.Write([]byte("success"))
|
_, err := w.Write([]byte("success"))
|
||||||
|
require.NoError(t, err)
|
||||||
})
|
})
|
||||||
|
|
||||||
imageServer := httptest.NewServer(handler)
|
imageServer := httptest.NewServer(handler)
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user