Remove unused comment actions (#9222)
* Remove unused comment actions * improve code
This commit is contained in:
parent
2fc3eb1d15
commit
6e81eafdd6
6 changed files with 10 additions and 55 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue