diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-28 00:11:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-28 00:11:41 +0800 |
commit | bb5a6b7a07125b29604f479f45e59073cb3d4648 (patch) | |
tree | 590eeb774f6cb16bc8f8b12dc8f92fb6fd11b443 /models/star.go | |
parent | 25663b58161c48bdc8e9cae900544378dede0d2b (diff) | |
download | gitea-bb5a6b7a07125b29604f479f45e59073cb3d4648.tar.gz gitea-bb5a6b7a07125b29604f479f45e59073cb3d4648.zip |
fix xorm NewSession uncorrected usages (#774)
Diffstat (limited to 'models/star.go')
-rw-r--r-- | models/star.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/models/star.go b/models/star.go index 997b223a18..d7366f37b5 100644 --- a/models/star.go +++ b/models/star.go @@ -14,7 +14,6 @@ type Star struct { // StarRepo or unstar repository. func StarRepo(userID, repoID int64, star bool) error { sess := x.NewSession() - defer sess.Close() if err := sess.Begin(); err != nil { |