Skip to content

Commit

Permalink
Enable stylecheck linter
Browse files Browse the repository at this point in the history
Add stylecheck linter to golangci-lint.
* Fix style issues.

Signed-off-by: Ben Kochie <[email protected]>
  • Loading branch information
SuperQ committed Feb 14, 2024
1 parent 6d18ce7 commit e5b09ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ linters:
enable:
- misspell
- revive
- stylecheck
disable:
# Disable soon to deprecated[1] linters that lead to false
# positives when build tags disable certain files[2]
Expand Down
2 changes: 1 addition & 1 deletion collector/cpu_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func NewCPUCollector(logger log.Logger) (Collector, error) {
isolcpus, err := sysfs.IsolatedCPUs()
if err != nil {
if !os.IsNotExist(err) {
return nil, fmt.Errorf("Unable to get isolated cpus: %w", err)
return nil, fmt.Errorf("unable to get isolated cpus: %w", err)
}
level.Debug(logger).Log("msg", "Could not open isolated file", "error", err)
}
Expand Down

0 comments on commit e5b09ec

Please sign in to comment.