Skip to content

Commit

Permalink
Fix go linter
Browse files Browse the repository at this point in the history
Signed-off-by: Łukasz Stolcman <[email protected]>
  • Loading branch information
lstolcman committed Dec 16, 2023
1 parent a98e795 commit 9480bf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/platform/platform_matcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func getCPUVariantWindows(arch string) string {
func getCPUVariantArm() string {
variant, err := getCPUInfo("Cpu architecture")
if err != nil {
logrus.Errorf("Couldn't get cpu architecture: %w", err)
logrus.Errorf("Couldn't get cpu architecture: %v", err)
return ""
}

Expand All @@ -99,7 +99,7 @@ func getCPUVariantArm() string {
// https://github.com/moby/moby/pull/36121#issuecomment-398328286
model, err := getCPUInfo("model name")
if err != nil {
logrus.Errorf("Couldn't get cpu model name, it may be the corner case where variant is 6: %w", err)
logrus.Errorf("Couldn't get cpu model name, it may be the corner case where variant is 6: %v", err)
return ""
}
// model name is NOT a value provided by the CPU; it is another outcome of Linux CPU detection,
Expand Down

0 comments on commit 9480bf3

Please sign in to comment.