mirror of
https://github.com/mattermost/mattermost.git
synced 2026-10-30 22:55:29 +08:00
Fixed errcheck issues (#28403)
This commit is contained in:
@@ -78,7 +78,6 @@ issues:
|
||||
channels/api4/emoji_test.go|\
|
||||
channels/api4/export.go|\
|
||||
channels/api4/export_test.go|\
|
||||
channels/api4/file.go|\
|
||||
channels/api4/file_test.go|\
|
||||
channels/api4/group.go|\
|
||||
channels/api4/group_local.go|\
|
||||
|
||||
@@ -607,7 +607,9 @@ func getFileLink(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
auditRec.Success()
|
||||
|
||||
w.Write([]byte(model.MapToJSON(resp)))
|
||||
if _, err := w.Write([]byte(model.MapToJSON(resp))); err != nil {
|
||||
c.Logger.Warn("Error while writing response", mlog.Err(err))
|
||||
}
|
||||
}
|
||||
|
||||
func getFilePreview(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user