summaryrefslogtreecommitdiffstats
path: root/models/issue_assignees.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_assignees.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_assignees.go')
-rw-r--r--models/issue_assignees.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/models/issue_assignees.go b/models/issue_assignees.go
index c78132db5d..1eee9d7769 100644
--- a/models/issue_assignees.go
+++ b/models/issue_assignees.go
@@ -144,9 +144,6 @@ func (issue *Issue) toggleAssignee(sess *xorm.Session, doer *User, assigneeID in
if err != nil {
return false, nil, fmt.Errorf("createComment: %v", err)
}
- if err = sendCreateCommentAction(sess, opts, comment); err != nil {
- return false, nil, err
- }
// if pull request is in the middle of creation - don't call webhook
if isCreate {