mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-05 09:55:20 +02:00
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
|
@ -414,11 +414,7 @@ func newIssueLabel(e *xorm.Session, issue *Issue, label *Label, doer *User) (err
|
|||
Label: label,
|
||||
Content: "1",
|
||||
}
|
||||
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
|
||||
}
|
||||
|
||||
|
@ -494,11 +490,7 @@ func deleteIssueLabel(e *xorm.Session, issue *Issue, label *Label, doer *User) (
|
|||
Issue: issue,
|
||||
Label: label,
|
||||
}
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue