mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	* use e if it is an option * potential nil so check err first * check err first * m == nil already checked
This commit is contained in:
		@@ -199,7 +199,7 @@ func GetAttachmentsByCommentID(commentID int64) ([]*Attachment, error) {
 | 
			
		||||
 | 
			
		||||
func getAttachmentsByCommentID(e Engine, commentID int64) ([]*Attachment, error) {
 | 
			
		||||
	attachments := make([]*Attachment, 0, 10)
 | 
			
		||||
	return attachments, x.Where("comment_id=?", commentID).Find(&attachments)
 | 
			
		||||
	return attachments, e.Where("comment_id=?", commentID).Find(&attachments)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// getAttachmentByReleaseIDFileName return a file based on the the following infos:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user