diff options
author | Lauris BH <lauris@nix.lv> | 2017-06-21 03:57:05 +0300 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-06-21 08:57:05 +0800 |
commit | 6db387a21e245dc4aa7f009ca60574e42d934ffb (patch) | |
tree | 5f5dcd1b4cd3409e3fc1c4e2a0799ce85a09c3c0 /models/models.go | |
parent | 754482bf5d4922f0553c281ac525daff3f446c22 (diff) | |
download | gitea-6db387a21e245dc4aa7f009ca60574e42d934ffb.tar.gz gitea-6db387a21e245dc4aa7f009ca60574e42d934ffb.zip |
Refactor session close as xorm already does everything needed internally (#2020)
Diffstat (limited to 'models/models.go')
-rw-r--r-- | models/models.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/models/models.go b/models/models.go index 02a782cde3..6a8fbfe624 100644 --- a/models/models.go +++ b/models/models.go @@ -49,13 +49,6 @@ type Engine interface { Where(interface{}, ...interface{}) *xorm.Session } -func sessionRelease(sess *xorm.Session) { - if !sess.IsCommitedOrRollbacked { - sess.Rollback() - } - sess.Close() -} - var ( x *xorm.Engine tables []interface{} |