mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-10 09:41:52 +02:00
chore: run formatter
This commit is contained in:
parent
2a1b0cd104
commit
2fadac8428
@ -217,7 +217,6 @@ func (g *Group) IsPrivateBecauseOfParentPermissions(ctx context.Context, user *u
|
||||
func GetGroupByIDAndCond(ctx context.Context, id int64, cond builder.Cond) (*Group, error) {
|
||||
group := new(Group)
|
||||
|
||||
|
||||
has, err := db.GetEngine(ctx).
|
||||
Where(cond.And(builder.Eq{"`repo_group`.id": id})).Get(group)
|
||||
if err != nil {
|
||||
@ -456,7 +455,11 @@ func MoveGroup(ctx context.Context, group *Group, newParent int64, newSortOrder
|
||||
ID: group.ID,
|
||||
}
|
||||
}
|
||||
|
||||
err = group.LoadOwner(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
group.OwnerName = group.Owner.Name
|
||||
group.ParentGroupID = newParent
|
||||
group.SortOrder = newSortOrder
|
||||
for i, gg := range siblings {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user