summaryrefslogtreecommitdiffstats
path: root/models/issue_comment.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issue_comment.go')
-rw-r--r--models/issue_comment.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go
index de963f45f6..326676ecfc 100644
--- a/models/issue_comment.go
+++ b/models/issue_comment.go
@@ -668,7 +668,10 @@ func DeleteComment(comment *Comment) error {
return err
}
}
- sess.Where("comment_id = ?", comment.ID).Cols("is_deleted").Update(&Action{IsDeleted: true})
+
+ if _, err := sess.Where("comment_id = ?", comment.ID).Cols("is_deleted").Update(&Action{IsDeleted: true}); err != nil {
+ return err
+ }
return sess.Commit()
}