errcheck issues fixed (#28609)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
71d98443c3
Коммит
f0918e1c01
@@ -106,7 +106,6 @@ issues:
|
|||||||
channels/api4/user.go|\
|
channels/api4/user.go|\
|
||||||
channels/api4/user_local.go|\
|
channels/api4/user_local.go|\
|
||||||
channels/api4/user_test.go|\
|
channels/api4/user_test.go|\
|
||||||
channels/api4/webhook.go|\
|
|
||||||
channels/api4/webhook_test.go|\
|
channels/api4/webhook_test.go|\
|
||||||
channels/api4/websocket_test.go|\
|
channels/api4/websocket_test.go|\
|
||||||
channels/app/admin.go|\
|
channels/app/admin.go|\
|
||||||
|
|||||||
@@ -238,7 +238,9 @@ func getIncomingHooks(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
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) {
|
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
|
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) {
|
func getOutgoingHook(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user