Skip to content

Commit a11df6a

Browse files
authored
fix(goformation): Remove redundant condition in property.go (#8691)
1 parent 37b3a15 commit a11df6a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/goformation/generate/property.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func (p Property) HasValidType() bool {
191191

192192
// IsPolymorphic checks whether a property can be multiple different types
193193
func (p Property) IsPolymorphic() bool {
194-
return len(p.PrimitiveTypes) > 0 || len(p.PrimitiveItemTypes) > 0 || len(p.PrimitiveItemTypes) > 0 || len(p.ItemTypes) > 0 || len(p.Types) > 0
194+
return len(p.PrimitiveTypes) > 0 || len(p.PrimitiveItemTypes) > 0 || len(p.ItemTypes) > 0 || len(p.Types) > 0
195195
}
196196

197197
// IsPrimitive checks whether a property is a primitive type

0 commit comments

Comments
 (0)