mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-03 00:02:43 +02:00
Remove unused comment actions (#9222)
* Remove unused comment actions * improve code
This commit is contained in:
1 parent
2fc3eb1d15
commit
6e81eafdd6
6 files changed
+10
-55
No files matched your search
@@ -394,12 +394,7 @@ func changeMilestoneAssign(e *xorm.Session, doer *User, issue *Issue, oldMilesto
|
||||
OldMilestoneID: oldMilestoneID,
|
||||
MilestoneID: issue.MilestoneID,
|
||||
}
|
||||
comment, err := createCommentWithNoAction(e, opts)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := sendCreateCommentAction(e, opts, comment); err != nil {
|
||||
if _, err := createCommentWithNoAction(e, opts); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user