aboutsummaryrefslogtreecommitdiff
path: root/models/issue.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-12 19:46:38 -0500
committerUnknwon <u@gogs.io>2017-02-12 19:46:38 -0500
commit1c87b082c1545a02293e08773f402b19f1ebaffe (patch)
tree5c790c9dfc0216f579e0e453728158cc2d77c1c5 /models/issue.go
parent99d86c7175f4c513597c1b8c4d75f0712c946c59 (diff)
api/issue: minor code refactor (#3688)
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/issue.go b/models/issue.go
index a661ea4b..caaabe42 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -813,6 +813,7 @@ type IssuesOptions struct {
SortType string
}
+// buildIssuesQuery returns nil if it foresees there won't be any value returned.
func buildIssuesQuery(opts *IssuesOptions) *xorm.Session {
sess := x.NewSession()