From 6db387a21e245dc4aa7f009ca60574e42d934ffb Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Wed, 21 Jun 2017 03:57:05 +0300 Subject: Refactor session close as xorm already does everything needed internally (#2020) --- models/issue_user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/issue_user.go') diff --git a/models/issue_user.go b/models/issue_user.go index 024a3cccd9..11d47dd0a6 100644 --- a/models/issue_user.go +++ b/models/issue_user.go @@ -69,7 +69,7 @@ func updateIssueUserByAssignee(e Engine, issue *Issue) (err error) { // UpdateIssueUserByAssignee updates issue-user relation for assignee. func UpdateIssueUserByAssignee(issue *Issue) (err error) { sess := x.NewSession() - defer sessionRelease(sess) + defer sess.Close() if err = sess.Begin(); err != nil { return err } -- cgit v1.2.3