mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
use correct xml package for custom MarshalXML() (#16421)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user