From bb5a6b7a07125b29604f479f45e59073cb3d4648 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 28 Jan 2017 00:11:41 +0800 Subject: fix xorm NewSession uncorrected usages (#774) --- models/star.go | 1 - 1 file changed, 1 deletion(-) (limited to 'models/star.go') 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 { -- cgit v1.2.3