add missing nil check before IsErrGroupNotExist call

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2026-04-02 20:00:49 -04:00
parent 86d1826527
commit eb402b94d5
+1 -1
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 {