fix: system local errcheck issues (#28539)

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Этот коммит содержится в:
Rohan Sharma
2024-10-07 17:09:06 +05:30
коммит произвёл GitHub
родитель 662e59865c
Коммит 2b7b4100d2
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@@ -105,7 +105,6 @@ issues:
channels/api4/status.go|\
channels/api4/status_test.go|\
channels/api4/system.go|\
channels/api4/system_local.go|\
channels/api4/system_test.go|\
channels/api4/team.go|\
channels/api4/team_local.go|\

Просмотреть файл

@@ -8,6 +8,7 @@ import (
"net/http"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/v8/channels/audit"
)
@@ -39,5 +40,7 @@ func localCheckIntegrity(c *Context, w http.ResponseWriter, r *http.Request) {
}
auditRec.Success()
w.Write(data)
if _, err := w.Write(data); err != nil {
c.Logger.Warn("Failed to write response", mlog.Err(err))
}
}