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/repo_editor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/repo_editor.go') diff --git a/models/repo_editor.go b/models/repo_editor.go index 40898dd4c2..720e071625 100644 --- a/models/repo_editor.go +++ b/models/repo_editor.go @@ -401,7 +401,7 @@ func DeleteUploads(uploads ...*Upload) (err error) { } sess := x.NewSession() - defer sessionRelease(sess) + defer sess.Close() if err = sess.Begin(); err != nil { return err } -- cgit v1.2.3