mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-05 21:24:38 +02:00
fix nonexistent variable reference in GetGroupByID function
This commit is contained in:
1 parent
0ed90f83f9
commit
2ffbc4d2c0
1 file changed
+1
-1
@@ -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 {
|
||||||
|
|||||||
Reference in new issue
Block a user