Skip to content

Commit

Permalink
Apply linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Sploder12 committed Jan 16, 2025
1 parent 2cc52cf commit 0571a4c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/collector/sysinfo/sysinfo.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// package sysinfo allows collecting "common" system information for all insight reports.
// Package sysinfo allows collecting "common" system information for all insight reports.
package sysinfo

type options struct {
Expand Down
2 changes: 0 additions & 2 deletions internal/collector/sysinfo/sysinfo_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
)

func (s Manager) collectHardware() (hwInfo HwInfo, err error) {

// System vendor
d, err := os.ReadFile(filepath.Join(s.root, "sys/class/dmi/id/sys_vendor"))
if err != nil {
Expand All @@ -20,6 +19,5 @@ func (s Manager) collectHardware() (hwInfo HwInfo, err error) {
}

func (s Manager) collectSoftware() (swInfo SwInfo, err error) {

return swInfo, nil
}
3 changes: 1 addition & 2 deletions internal/collector/sysinfo/sysinfo_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func TestNew(t *testing.T) {
}{
"Instantiate a sys info manager": {},
}
for name, _ := range tests {
for name := range tests {
t.Run(name, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -56,5 +56,4 @@ func TestCollect(t *testing.T) {
require.Equal(t, want, got, "Collect should return expected sys information")
})
}

}

0 comments on commit 0571a4c

Please sign in to comment.