1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-23 20:16:38 +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 ... // UnmarshalXML ...
func (f *BarterRabbet) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { func (f *BarterRabbet) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
for _, attr := range start.Attr { for _, attr := range start.Attr {
switch attr.Name.Local { if attr.Name.Local == "type" {
case "type":
f.Type = attr.Value f.Type = attr.Value
break
} }
} }
// Consume the end element // Consume the end element