Skip to content

Commit c8cafc0

Browse files
committed
rm merge conflict resolve
1 parent fbab446 commit c8cafc0

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

models/issue_comment.go

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -858,17 +858,8 @@ func updateCommentInfos(ctx context.Context, opts *CreateCommentOptions, comment
858858
if _, err = e.ID(attachments[i].ID).Update(attachments[i]); err != nil {
859859
return fmt.Errorf("update attachment [%d]: %v", attachments[i].ID, err)
860860
}
861-
862-
for i := range attachments {
863-
attachments[i].IssueID = opts.Issue.ID
864-
attachments[i].CommentID = comment.ID
865-
// No assign value could be 0, so ignore AllCols().
866-
if _, err = e.ID(attachments[i].ID).Update(attachments[i]); err != nil {
867-
return fmt.Errorf("update attachment [%d]: %v", attachments[i].ID, err)
868-
}
869-
}
870-
comment.Attachments = attachments
871861
}
862+
comment.Attachments = attachments
872863
}
873864
case CommentTypeReopen, CommentTypeClose:
874865
if err = updateIssueClosedNum(ctx, opts.Issue); err != nil {

0 commit comments

Comments
 (0)