mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
fix: plugin errcheck issues (#28517)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
This commit is contained in:
parent
0f200adbe0
commit
e41ab1a3b8
@ -81,7 +81,6 @@ issues:
|
|||||||
channels/api4/license.go|\
|
channels/api4/license.go|\
|
||||||
channels/api4/license_local.go|\
|
channels/api4/license_local.go|\
|
||||||
channels/api4/oauth_test.go|\
|
channels/api4/oauth_test.go|\
|
||||||
channels/api4/plugin.go|\
|
|
||||||
channels/api4/post_test.go|\
|
channels/api4/post_test.go|\
|
||||||
channels/api4/preference_test.go|\
|
channels/api4/preference_test.go|\
|
||||||
channels/api4/reaction_test.go|\
|
channels/api4/reaction_test.go|\
|
||||||
|
@ -276,7 +276,9 @@ func getWebappPlugins(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 getMarketplacePlugins(c *Context, w http.ResponseWriter, r *http.Request) {
|
func getMarketplacePlugins(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||||
@ -314,7 +316,9 @@ func getMarketplacePlugins(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
w.Write(json)
|
if _, err := w.Write(json); err != nil {
|
||||||
|
c.Logger.Warn("Error while writing json response", mlog.Err(err))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func enablePlugin(c *Context, w http.ResponseWriter, r *http.Request) {
|
func enablePlugin(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||||
|
Loading…
Reference in New Issue
Block a user