Skip to content

Commit

Permalink
Fix linter issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
tetafro committed Sep 8, 2023
1 parent e25ef44 commit 300b620
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down
1 change: 0 additions & 1 deletion api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/stretchr/testify/require"
)

// <cm_network_access>Allowed</cm_network_access></cm_system_info>
func TestCMSystemInfo_UnmarshalXML(t *testing.T) {
t.Run("valid xml", func(t *testing.T) {
data := `<?xml version="1.0" encoding="utf-8"?>` +
Expand Down

0 comments on commit 300b620

Please sign in to comment.