mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04:00
Fixed errcheck issues in server/channels/api4/group_local.go (#28417)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
This commit is contained in:
parent
9d6adbfea2
commit
ba02101bcf
2 changed files with 8 additions and 3 deletions
|
|
@ -77,7 +77,6 @@ issues:
|
|||
channels/api4/export.go|\
|
||||
channels/api4/export_test.go|\
|
||||
channels/api4/file_test.go|\
|
||||
channels/api4/group_local.go|\
|
||||
channels/api4/import_test.go|\
|
||||
channels/api4/integration_action_test.go|\
|
||||
channels/api4/ip_filtering_test.go|\
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ package api4
|
|||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitGroupLocal() {
|
||||
|
|
@ -23,7 +25,9 @@ func getGroupsByChannelLocal(c *Context, w http.ResponseWriter, r *http.Request)
|
|||
return
|
||||
}
|
||||
|
||||
w.Write(b)
|
||||
if _, err := w.Write(b); err != nil {
|
||||
c.Logger.Warn("Error while writing response", mlog.Err(err))
|
||||
}
|
||||
}
|
||||
|
||||
func getGroupsByTeamLocal(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
|
|
@ -37,5 +41,7 @@ func getGroupsByTeamLocal(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
w.Write(b)
|
||||
if _, err := w.Write(b); err != nil {
|
||||
c.Logger.Warn("Error while writing response", mlog.Err(err))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue