fix: scheme errcheck issues (#28543)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
d1962e123e
Коммит
68404f2f33
@@ -89,7 +89,6 @@ issues:
|
|||||||
channels/api4/reaction_test.go|\
|
channels/api4/reaction_test.go|\
|
||||||
channels/api4/remote_cluster.go|\
|
channels/api4/remote_cluster.go|\
|
||||||
channels/api4/role_test.go|\
|
channels/api4/role_test.go|\
|
||||||
channels/api4/scheme.go|\
|
|
||||||
channels/api4/scheme_test.go|\
|
channels/api4/scheme_test.go|\
|
||||||
channels/api4/shared_channel.go|\
|
channels/api4/shared_channel.go|\
|
||||||
channels/api4/status.go|\
|
channels/api4/status.go|\
|
||||||
|
|||||||
@@ -105,7 +105,9 @@ func getSchemes(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 getTeamsForScheme(c *Context, w http.ResponseWriter, r *http.Request) {
|
func getTeamsForScheme(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||||
@@ -142,7 +144,9 @@ func getTeamsForScheme(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 getChannelsForScheme(c *Context, w http.ResponseWriter, r *http.Request) {
|
func getChannelsForScheme(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user