From 300b620850ee8e7b6928e7c2ba106853d24fd530 Mon Sep 17 00:00:00 2001 From: Denis Krivak Date: Fri, 8 Sep 2023 16:43:43 +0200 Subject: [PATCH] Fix linter issues. --- api.go | 2 +- api_test.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/api.go b/api.go index 99543b4..938e3d1 100644 --- a/api.go +++ b/api.go @@ -52,7 +52,7 @@ func (c *CMSystemInfo) UnmarshalXML(d *xml.Decoder, start xml.StartElement) erro dur, err := parseDuration(aux.SystemUptime) if err != nil { - return err //nolint:wrapcheck + return err } c.SystemUptime = int(dur.Seconds()) diff --git a/api_test.go b/api_test.go index 507b5bc..3fc89ea 100644 --- a/api_test.go +++ b/api_test.go @@ -7,7 +7,6 @@ import ( "github.com/stretchr/testify/require" ) -// Allowed func TestCMSystemInfo_UnmarshalXML(t *testing.T) { t.Run("valid xml", func(t *testing.T) { data := `` +