From f875425b6e37206c7a32857ab75d2b79a55c773d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sun, 17 Mar 2024 20:08:12 +0900 Subject: [PATCH] chore: make lint happy --- structtext.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/structtext.go b/structtext.go index 5deff41..5dc4796 100644 --- a/structtext.go +++ b/structtext.go @@ -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