From 1e96c159570cc454f2c4a5318b7ac3c091014f23 Mon Sep 17 00:00:00 2001 From: Arran Ubels Date: Mon, 8 Jan 2024 15:58:23 +1100 Subject: [PATCH] Consistent receivers. --- components.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components.go b/components.go index f2557ab..7713239 100644 --- a/components.go +++ b/components.go @@ -31,12 +31,12 @@ func (cb *ComponentBase) SubComponents() []Component { return cb.Components } -func (base ComponentBase) serializeThis(writer io.Writer, componentType string) { +func (cb ComponentBase) serializeThis(writer io.Writer, componentType string) { _, _ = fmt.Fprint(writer, "BEGIN:"+componentType, "\r\n") - for _, p := range base.Properties { + for _, p := range cb.Properties { p.serialize(writer) } - for _, c := range base.Components { + for _, c := range cb.Components { c.serialize(writer) } _, _ = fmt.Fprint(writer, "END:"+componentType, "\r\n")