diff options
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 } |