1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-04 23:30:25 +08:00

chore: make lint happy

This commit is contained in:
源文雨
2024-03-17 20:08:12 +09:00
parent 72447243cf
commit f875425b6e

View File

@@ -97,9 +97,9 @@ type BarterRabbet struct {
// UnmarshalXML ...
func (f *BarterRabbet) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
for _, attr := range start.Attr {
switch attr.Name.Local {
case "type":
if attr.Name.Local == "type" {
f.Type = attr.Value
break
}
}
// Consume the end element