0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-21 03:28:38 +02:00

add missing nil check before IsErrGroupNotExist call

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-08-12 20:59:30 -04:00
parent 86d1826527
commit eb402b94d5
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C

View File

@ -331,7 +331,7 @@ func UpdateGroup(ctx context.Context, group *Group) error {
func MoveGroup(ctx context.Context, group *Group, newParent int64, newSortOrder int) error {
sess := db.GetEngine(ctx)
ng, err := GetGroupByID(ctx, newParent)
if !IsErrGroupNotExist(err) {
if err != nil && !IsErrGroupNotExist(err) {
return err
}
if ng != nil {