mirror of https://github.com/gin-gonic/gin.git
refactor: Handle error that never occur
This commit is contained in:
parent
943e93cba0
commit
75241e2eb9
5
utils.go
5
utils.go
|
@ -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},
|
||||
|
|
Loading…
Reference in New Issue