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:
parent
86d1826527
commit
eb402b94d5
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user