Skip to content

Commit

Permalink
Consistent receivers.
Browse files Browse the repository at this point in the history
  • Loading branch information
arran4 committed Jan 8, 2024
1 parent 9e30bdf commit 1e96c15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 1e96c15

Please sign in to comment.