diff --git a/lxd/db/cluster/identity_provider_groups.go b/lxd/db/cluster/identity_provider_groups.go index c4fa4d4f58f4..949c3682f41d 100644 --- a/lxd/db/cluster/identity_provider_groups.go +++ b/lxd/db/cluster/identity_provider_groups.go @@ -148,7 +148,7 @@ func GetDistinctAuthGroupNamesFromIDPGroupNames(ctx context.Context, tx *sql.Tx, return nil, nil } - var args []any + args := make([]any, 0, len(idpGroupNames)) for _, idpGroupName := range idpGroupNames { args = append(args, idpGroupName) }