Fixed errcheck issues (#28403)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
887c3a800d
Коммит
2b03afdfc2
@@ -78,7 +78,6 @@ issues:
|
|||||||
channels/api4/emoji_test.go|\
|
channels/api4/emoji_test.go|\
|
||||||
channels/api4/export.go|\
|
channels/api4/export.go|\
|
||||||
channels/api4/export_test.go|\
|
channels/api4/export_test.go|\
|
||||||
channels/api4/file.go|\
|
|
||||||
channels/api4/file_test.go|\
|
channels/api4/file_test.go|\
|
||||||
channels/api4/group.go|\
|
channels/api4/group.go|\
|
||||||
channels/api4/group_local.go|\
|
channels/api4/group_local.go|\
|
||||||
|
|||||||
@@ -607,7 +607,9 @@ func getFileLink(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
auditRec.Success()
|
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) {
|
func getFilePreview(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user