mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-08-06 09:39:44 +08:00
fix xorm NewSession uncorrected usages (#774)
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user