Fixed errcheck issues (#28403)

This commit is contained in:
Arya Khochare
2024-10-02 12:16:10 +02:00
committed by GitHub
parent 887c3a800d
commit 2b03afdfc2
2 changed files with 3 additions and 2 deletions
-1
View File
@@ -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|\
+3 -1
View File
@@ -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) {