Skip to content

Commit

Permalink
Fix unchecked error bug (#2110)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethantkoenig authored and lunny committed Jul 4, 2017
1 parent 2fd0398 commit a52cd59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion models/issue_comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

0 comments on commit a52cd59

Please sign in to comment.