refactor: Handle error that never occur

This commit is contained in:
CCpro10 2023-03-04 20:35:47 +08:00
parent 943e93cba0
commit 75241e2eb9
1 changed files with 2 additions and 3 deletions

View File

@ -59,9 +59,8 @@ func (h H) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
Space: "",
Local: "map",
}
if err := e.EncodeToken(start); err != nil {
return err
}
_ = e.EncodeToken(start)
for key, value := range h {
elem := xml.StartElement{
Name: xml.Name{Space: "", Local: key},