1
0
Fork 0
forked from forgejo/forgejo

Remove unused comment actions (#9222)

* Remove unused comment actions

* improve code
This commit is contained in:
Lunny Xiao 2019-12-02 22:43:39 +08:00 committed by Lauris BH
parent 2fc3eb1d15
commit 6e81eafdd6
6 changed files with 10 additions and 55 deletions

View file

@ -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
}