Browse Source

Fix unchecked error bug (#2110)

for-closed-social
Ethan Koenig 7 years ago
committed by Lunny Xiao
parent
commit
a52cd59727
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      models/issue_comment.go

+ 4
- 1
models/issue_comment.go View File

@ -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()
}

Loading…
Cancel
Save