diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6606961e4..76df5677b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: pull_request: env: - GOLANGCILINT_VERSION: "1.64.4" + GOLANGCILINT_VERSION: "1.64.5" jobs: lint: diff --git a/format/xml/xml.go b/format/xml/xml.go index 627c80646..28f6782c7 100644 --- a/format/xml/xml.go +++ b/format/xml/xml.go @@ -388,7 +388,8 @@ func toXMLFromObject(c any, opts ToXMLOpts) any { switch { case k == "#seq": hasSeq = true - seq, _ = strconv.Atoi(v.(string)) + s, _ := v.(string) + seq, _ = strconv.Atoi(s) case k == "#text": s, _ := v.(string) n.Chardata = []byte(s)