~samwhited/xmpp

fbc09c4ff7362b50bdeec25f68d9d64cc7f8f8ea — Sam Whited 4 years ago b03e51b
Simplify slice literal declarations

[ci skip]
2 files changed, 2 insertions(+), 2 deletions(-)

M errors.go
M internal/saslerr/errors.go
M errors.go => errors.go +1 -1
@@ 134,7 134,7 @@ func (se StanzaError) MarshalXML(e *xml.Encoder, start xml.StartElement) (err er
		text := xml.StartElement{
			Name: xml.Name{Space: ns.Stanza, Local: "text"},
			Attr: []xml.Attr{
				xml.Attr{
				{
					Name:  xml.Name{Space: ns.XML, Local: "lang"},
					Value: se.Lang.String(),
				},

M internal/saslerr/errors.go => internal/saslerr/errors.go +1 -1
@@ 69,7 69,7 @@ func (f Failure) MarshalXML(e *xml.Encoder, start xml.StartElement) (err error) 
		text := xml.StartElement{
			Name: xml.Name{Space: "", Local: "text"},
			Attr: []xml.Attr{
				xml.Attr{
				{
					Name:  xml.Name{Space: ns.XML, Local: "lang"},
					Value: f.Lang.String(),
				},