From f1282d247f4dc45716c80854f52074d988c411a3 Mon Sep 17 00:00:00 2001 From: Viacheslav Vasilyev Date: Thu, 5 Mar 2026 15:54:25 +0000 Subject: [PATCH] fix(goformation): Remove redundant condition in property.go --- pkg/goformation/generate/property.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/goformation/generate/property.go b/pkg/goformation/generate/property.go index 00b13877a1..209508c9e7 100644 --- a/pkg/goformation/generate/property.go +++ b/pkg/goformation/generate/property.go @@ -191,7 +191,7 @@ func (p Property) HasValidType() bool { // IsPolymorphic checks whether a property can be multiple different types func (p Property) IsPolymorphic() bool { - return len(p.PrimitiveTypes) > 0 || len(p.PrimitiveItemTypes) > 0 || len(p.PrimitiveItemTypes) > 0 || len(p.ItemTypes) > 0 || len(p.Types) > 0 + return len(p.PrimitiveTypes) > 0 || len(p.PrimitiveItemTypes) > 0 || len(p.ItemTypes) > 0 || len(p.Types) > 0 } // IsPrimitive checks whether a property is a primitive type