0
0
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:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2026-05-08 20:12:12 -04:00
parent 2a1b0cd104
commit 2fadac8428
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C

View File

@ -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 {