errcheck issues fixed (#28609)

This commit is contained in:
Arya Khochare
2024-10-08 12:23:08 +02:00
committed by GitHub
parent 71d98443c3
commit f0918e1c01
2 changed files with 6 additions and 3 deletions
-1
View File
@@ -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|\
+6 -2
View File
@@ -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) {