mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Remove unused comment actions (#9222)
* Remove unused comment actions * improve code
This commit is contained in:
@@ -52,12 +52,7 @@ func updateIssueLock(opts *IssueLockOptions, lock bool) error {
|
||||
Type: commentType,
|
||||
Content: opts.Reason,
|
||||
}
|
||||
comment, err := createCommentWithNoAction(sess, opt)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err = sendCreateCommentAction(sess, opt, comment); err != nil {
|
||||
if _, err := createCommentWithNoAction(sess, opt); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user