summaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue.go b/models/issue.go
index e2772052f7..a83cfd6504 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -1097,8 +1097,8 @@ func Issues(opts *IssuesOptions) ([]*Issue, error) {
sess = x.Limit(setting.UI.IssuePagingNum, start)
} else {
sess = x.NewSession()
- defer sess.Close()
}
+ defer sess.Close()
if len(opts.IssueIDs) > 0 {
sess.In("issue.id", opts.IssueIDs)