mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 09:09:02 +00:00
Fix unchecked error bug (#2110)
This commit is contained in:
parent
2fd039864b
commit
a52cd59727
|
@ -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…
Reference in a new issue