use correct xml package for custom MarshalXML() (#16421)

This commit is contained in:
Harshavardhana
2023-01-17 05:08:33 +05:30
committed by GitHub
parent 5a9f7516d6
commit 3db658e51e
5 changed files with 36 additions and 15 deletions

View File

@@ -320,7 +320,7 @@ func (rDate *RetentionDate) UnmarshalXML(d *xml.Decoder, startElement xml.StartE
// MarshalXML encodes expiration date if it is non-zero and encodes
// empty string otherwise
func (rDate *RetentionDate) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error {
func (rDate RetentionDate) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error {
if rDate.IsZero() {
return nil
}