mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-21 05:54:10 +08:00
Fixed errcheck issues (#28405)
This commit is contained in:
@@ -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|\
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user