fix: team local errcheck issues (#28538)

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Rohan Sharma
2024-10-08 00:31:13 +05:30
коммит произвёл GitHub
родитель e9968792b0
Коммит 9e0d629ab1
2 изменённых файлов: 3 добавлений и 2 удалений

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

@@ -107,7 +107,6 @@ issues:
channels/api4/system_local.go|\
channels/api4/system_test.go|\
channels/api4/team.go|\
channels/api4/team_local.go|\
channels/api4/team_test.go|\
channels/api4/upload_test.go|\
channels/api4/usage.go|\

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

@@ -180,7 +180,9 @@ func localInviteUsersToTeam(c *Context, w http.ResponseWriter, r *http.Request)
return
}
w.Write(js)
if _, err := w.Write(js); err != nil {
c.Logger.Warn("Error while writing response", mlog.Err(err))
}
} else {
var invalidEmailList []string