diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-12-02 22:43:39 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-12-02 16:43:39 +0200 |
commit | 6e81eafdd6b5db756d4ea30d759bac944b80e2de (patch) | |
tree | c9aea9ae31880cff79bf4ef3de55ad5f810f5ff7 /models/issue_lock.go | |
parent | 2fc3eb1d152830001ea5e8655b082adcb7adaab9 (diff) | |
download | gitea-6e81eafdd6b5db756d4ea30d759bac944b80e2de.tar.gz gitea-6e81eafdd6b5db756d4ea30d759bac944b80e2de.zip |
Remove unused comment actions (#9222)
* Remove unused comment actions
* improve code
Diffstat (limited to 'models/issue_lock.go')
-rw-r--r-- | models/issue_lock.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/models/issue_lock.go b/models/issue_lock.go index 05eca27ad6..4a2055ce32 100644 --- a/models/issue_lock.go +++ b/models/issue_lock.go @@ -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 } |