diff --git a/hack/generator/pkg/astmodel/errored_type.go b/hack/generator/pkg/astmodel/errored_type.go index 10e53898af0..44f70b81955 100644 --- a/hack/generator/pkg/astmodel/errored_type.go +++ b/hack/generator/pkg/astmodel/errored_type.go @@ -168,7 +168,7 @@ func (e *ErroredType) WriteDebugDescription(builder *strings.Builder, types Type } else { builder.WriteString("") } - + for _, e := range e.errors { builder.WriteString("|") builder.WriteString(e) diff --git a/hack/generator/pkg/functions/original_gvk_function.go b/hack/generator/pkg/functions/original_gvk_function.go index aba99b99670..f5c9a0c33f6 100644 --- a/hack/generator/pkg/functions/original_gvk_function.go +++ b/hack/generator/pkg/functions/original_gvk_function.go @@ -84,10 +84,6 @@ func (o OriginalGVKFunction) AsFunc( // Equals returns true if the passed function is equal to us, or false otherwise func (o OriginalGVKFunction) Equals(f astmodel.Function) bool { _, ok := f.(*OriginalGVKFunction) - if !ok { - // Not same type, can't be the same - return false - } - - return true + // Equality is just based on Type for now + return ok }