errcheck issues fixed (#28475)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0a92eb6363
Коммит
5a7385295c
@@ -92,7 +92,6 @@ issues:
|
||||
channels/api4/license_test.go|\
|
||||
channels/api4/oauth_test.go|\
|
||||
channels/api4/outgoing_oauth_connection_test.go|\
|
||||
channels/api4/permission.go|\
|
||||
channels/api4/plugin.go|\
|
||||
channels/api4/plugin_test.go|\
|
||||
channels/api4/post_test.go|\
|
||||
|
||||
@@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
||||
)
|
||||
|
||||
func (api *API) InitPermissions() {
|
||||
@@ -25,5 +26,7 @@ func appendAncillaryPermissionsPost(c *Context, w http.ResponseWriter, r *http.R
|
||||
c.SetJSONEncodingError(err)
|
||||
return
|
||||
}
|
||||
w.Write(b)
|
||||
if _, err := w.Write(b); err != nil {
|
||||
c.Logger.Warn("Error while writing response", mlog.Err(err))
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user