mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 02:38:35 +00: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