From f0b67bad85de75933d717bc5b600abee1e1e032a Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Thu, 16 Mar 2017 11:13:52 -0400 Subject: [PATCH] Make marshalMessageSet() not a pointer receiver for Request It doesn't even use the object --- ofx.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ofx.go b/ofx.go index c67c96f..c0dffc7 100644 --- a/ofx.go +++ b/ofx.go @@ -127,7 +127,7 @@ type Request struct { indent bool // Whether to indent the marshaled XML } -func (oq *Request) marshalMessageSet(e *xml.Encoder, requests []Message, setname string) error { +func marshalMessageSet(e *xml.Encoder, requests []Message, setname string) error { if len(requests) > 0 { messageSetElement := xml.StartElement{Name: xml.Name{Local: setname}} if err := e.EncodeToken(messageSetElement); err != nil { @@ -199,13 +199,13 @@ NEWFILEUID:NONE return nil, err } - if err := oq.marshalMessageSet(encoder, oq.Signup, "SIGNUPMSGSRQV1"); err != nil { + if err := marshalMessageSet(encoder, oq.Signup, "SIGNUPMSGSRQV1"); err != nil { return nil, err } - if err := oq.marshalMessageSet(encoder, oq.Banking, "BANKMSGSRQV1"); err != nil { + if err := marshalMessageSet(encoder, oq.Banking, "BANKMSGSRQV1"); err != nil { return nil, err } - if err := oq.marshalMessageSet(encoder, oq.Profile, "PROFMSGSRQV1"); err != nil { + if err := marshalMessageSet(encoder, oq.Profile, "PROFMSGSRQV1"); err != nil { return nil, err }