Skip to content

Commit 5606f1f

Browse files
committed
Upgrade golangci-lint.
Fix additional linter issues. Signed-off-by: Michael Montgomery <[email protected]>
1 parent 0497a4a commit 5606f1f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ GOPATH:=$(shell go env GOPATH)
77

88
VERSION?=latest
99

10-
GOLANGCI_VERSION:=1.55.2
10+
GOLANGCI_VERSION:=1.63.4
1111

1212
.PHONY: all
1313
all: build-test-adapter

pkg/apiserver/installer/apiserver_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ func TestCustomMetricsAPI(t *testing.T) {
300300
for k, v := range cases {
301301
response, err := executeRequest(t, k, v, server, &client)
302302
if err != nil {
303-
t.Errorf(err.Error())
303+
t.Errorf("%s", err.Error())
304304
continue
305305
}
306306
if v.ExpectedCount > 0 {
@@ -342,7 +342,7 @@ func TestExternalMetricsAPI(t *testing.T) {
342342
for k, v := range cases {
343343
response, err := executeRequest(t, k, v, server, &client)
344344
if err != nil {
345-
t.Errorf(err.Error())
345+
t.Errorf("%s", err.Error())
346346
continue
347347
}
348348
if v.ExpectedCount > 0 {

test-adapter/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func main() {
7575
klog.Fatalf("unable to register metrics: %v", err)
7676
}
7777

78-
klog.Infof(cmd.Message)
78+
klog.Infof("%s", cmd.Message)
7979
// Set up POST endpoint for writing fake metric values
8080
restful.DefaultContainer.Add(webService)
8181
go func() {

0 commit comments

Comments
 (0)