diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-12-02 22:43:39 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-12-02 16:43:39 +0200 |
commit | 6e81eafdd6b5db756d4ea30d759bac944b80e2de (patch) | |
tree | c9aea9ae31880cff79bf4ef3de55ad5f810f5ff7 /models/issue_milestone.go | |
parent | 2fc3eb1d152830001ea5e8655b082adcb7adaab9 (diff) | |
download | gitea-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.go | 7 |
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 } } |