fix: shared channel errcheck issues (#28542)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
344e76287f
Коммит
18388a8c64
@@ -101,7 +101,6 @@ issues:
|
||||
channels/api4/saml.go|\
|
||||
channels/api4/scheme.go|\
|
||||
channels/api4/scheme_test.go|\
|
||||
channels/api4/shared_channel.go|\
|
||||
channels/api4/shared_channel_test.go|\
|
||||
channels/api4/status.go|\
|
||||
channels/api4/status_test.go|\
|
||||
|
||||
@@ -60,7 +60,9 @@ func getSharedChannels(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 getRemoteClusterInfo(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
@@ -90,7 +92,9 @@ func getRemoteClusterInfo(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
c.SetJSONEncodingError(err)
|
||||
return
|
||||
}
|
||||
w.Write(b)
|
||||
if _, err := w.Write(b); err != nil {
|
||||
c.Logger.Warn("Error while writing response", mlog.Err(err))
|
||||
}
|
||||
}
|
||||
|
||||
func getSharedChannelRemotesByRemoteCluster(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Ссылка в новой задаче
Block a user