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