mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-06 03:09:18 +02:00
fix nonexistent variable reference in GetGroupByID function
This commit is contained in:
parent
0ed90f83f9
commit
2ffbc4d2c0
@ -102,7 +102,7 @@ func (g *Group) LoadOwner(ctx context.Context) error {
|
||||
func (g *Group) GetGroupByID(ctx context.Context, id int64) (*Group, error) {
|
||||
group := new(Group)
|
||||
|
||||
has, err := db.GetEngine(ctx).ID(id).Get(g)
|
||||
has, err := db.GetEngine(ctx).ID(id).Get(group)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
} else if !has {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user