fix: system local errcheck issues (#28539)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
662e59865c
Коммит
2b7b4100d2
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user