From 34c2b48cf19ef42b73e8364ca646ee44a43f30af Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 14 May 2020 21:50:49 +0800 Subject: [PATCH] Fix bug --- models/attachment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/attachment.go b/models/attachment.go index b2a2c42ea..e4885d809 100644 --- a/models/attachment.go +++ b/models/attachment.go @@ -220,7 +220,7 @@ func DeleteAttachments(attachments []*Attachment, remove bool) (int, error) { if remove { for i, a := range attachments { - if storage.Attachments.Delete(a.RelativePath()); err != nil { + if err := storage.Attachments.Delete(a.RelativePath()); err != nil { return i, err } }