diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-12-16 11:54:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-16 11:54:24 +0800 |
commit | 43ada6557135919b354d7384c4be699b539b10cb (patch) | |
tree | 676627d51d8822783393ba162b6fefd46742c427 /models/issue.go | |
parent | 67b316a954b161cac27e16b6455837881919dd94 (diff) | |
download | gitea-43ada6557135919b354d7384c4be699b539b10cb.tar.gz gitea-43ada6557135919b354d7384c4be699b539b10cb.zip |
remove unused method and rename createcommentWithNoAction (#9367)
Diffstat (limited to 'models/issue.go')
-rw-r--r-- | models/issue.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/models/issue.go b/models/issue.go index 48974b279e..75f7bd818a 100644 --- a/models/issue.go +++ b/models/issue.go @@ -664,7 +664,7 @@ func (issue *Issue) changeStatus(e *xorm.Session, doer *User, isClosed bool) (*C cmtType = CommentTypeReopen } - return createCommentWithNoAction(e, &CreateCommentOptions{ + return createComment(e, &CreateCommentOptions{ Type: cmtType, Doer: doer, Repo: issue.Repo, @@ -724,7 +724,7 @@ func (issue *Issue) ChangeTitle(doer *User, oldTitle string) (err error) { OldTitle: oldTitle, NewTitle: issue.Title, } - if _, err = createCommentWithNoAction(sess, opts); err != nil { + if _, err = createComment(sess, opts); err != nil { return fmt.Errorf("createComment: %v", err) } if err = issue.addCrossReferences(sess, doer, true); err != nil { @@ -752,7 +752,7 @@ func AddDeletePRBranchComment(doer *User, repo *Repository, issueID int64, branc Issue: issue, CommitSHA: branchName, } - if _, err = createCommentWithNoAction(sess, opts); err != nil { + if _, err = createComment(sess, opts); err != nil { return err } @@ -894,7 +894,7 @@ func newIssue(e *xorm.Session, doer *User, opts NewIssueOptions) (err error) { OldMilestoneID: 0, MilestoneID: opts.Issue.MilestoneID, } - if _, err = createCommentWithNoAction(e, opts); err != nil { + if _, err = createComment(e, opts); err != nil { return err } } |