mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-21 05:54:10 +08:00
errcheck issues fixed (#28609)
This commit is contained in:
@@ -106,7 +106,6 @@ issues:
|
||||
channels/api4/user.go|\
|
||||
channels/api4/user_local.go|\
|
||||
channels/api4/user_test.go|\
|
||||
channels/api4/webhook.go|\
|
||||
channels/api4/webhook_test.go|\
|
||||
channels/api4/websocket_test.go|\
|
||||
channels/app/admin.go|\
|
||||
|
||||
@@ -238,7 +238,9 @@ func getIncomingHooks(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))
|
||||
}
|
||||
}
|
||||
|
||||
func getIncomingHook(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
@@ -528,7 +530,9 @@ func getOutgoingHooks(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))
|
||||
}
|
||||
}
|
||||
|
||||
func getOutgoingHook(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user