summaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-15 22:20:55 -0700
committerUnknwon <u@gogs.io>2016-08-15 22:20:55 -0700
commit2625193a4820a89355ca1b8b7c910f0f4243baab (patch)
treec948d66e4e968caaff0109f808878af45bed0eec /models/issue.go
parentf3c325892139a4dae84ceda773b7caf5aef67d33 (diff)
downloadgitea-2625193a4820a89355ca1b8b7c910f0f4243baab.tar.gz
gitea-2625193a4820a89355ca1b8b7c910f0f4243baab.zip
models/repo_editor: improve code quality
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issue.go b/models/issue.go
index bd236c7a80..9b9dedb693 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -587,7 +587,7 @@ type NewIssueOptions struct {
IsPull bool
}
-func newIssue(e *xorm.Session, opts *NewIssueOptions) (err error) {
+func newIssue(e *xorm.Session, opts NewIssueOptions) (err error) {
opts.Issue.Title = strings.TrimSpace(opts.Issue.Title)
opts.Issue.Index = opts.Repo.NextIssueIndex()
@@ -669,7 +669,7 @@ func NewIssue(repo *Repository, issue *Issue, labelIDs []int64, uuids []string)
return err
}
- if err = newIssue(sess, &NewIssueOptions{
+ if err = newIssue(sess, NewIssueOptions{
Repo: repo,
Issue: issue,
LableIDs: labelIDs,