mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 01:48:31 +00:00 
			
		
		
		
	Fix unchecked error bug (#2110)
This commit is contained in:
		| @@ -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() | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user