aboutsummaryrefslogtreecommitdiffstats
path: root/models/issue_milestone.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-12-02 22:43:39 +0800
committerLauris BH <lauris@nix.lv>2019-12-02 16:43:39 +0200
commit6e81eafdd6b5db756d4ea30d759bac944b80e2de (patch)
treec9aea9ae31880cff79bf4ef3de55ad5f810f5ff7 /models/issue_milestone.go
parent2fc3eb1d152830001ea5e8655b082adcb7adaab9 (diff)
downloadgitea-6e81eafdd6b5db756d4ea30d759bac944b80e2de.tar.gz
gitea-6e81eafdd6b5db756d4ea30d759bac944b80e2de.zip
Remove unused comment actions (#9222)
* Remove unused comment actions * improve code
Diffstat (limited to 'models/issue_milestone.go')
-rw-r--r--models/issue_milestone.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/models/issue_milestone.go b/models/issue_milestone.go
index e3cbb90624..0b854a8671 100644
--- a/models/issue_milestone.go
+++ b/models/issue_milestone.go
@@ -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
}
}