From 40ee2011b810af3cbc5cd26cb3aaaa2911f93c16 Mon Sep 17 00:00:00 2001 From: widmogrod Date: Thu, 4 Jan 2024 22:42:49 +0100 Subject: [PATCH] x/schema: fix reflect --- x/schema/go.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/x/schema/go.go b/x/schema/go.go index aa1dab59..b34e8b59 100644 --- a/x/schema/go.go +++ b/x/schema/go.go @@ -220,10 +220,6 @@ func FromGoReflect(xschema shape.Shape, yreflect reflect.Value) Schema { return FromGoReflect(y, yreflect) }, func(x *shape.PointerLike) Schema { - if yreflect.Kind() == reflect.Ptr { - yreflect = yreflect.Elem() - } - return FromGoReflect(x.Type, yreflect) }, func(x *shape.AliasLike) Schema {