Skip to content

Commit 68ba2fe

Browse files
committed
fix staticcheck failures of pkg/probe/http
1 parent 3d350d8 commit 68ba2fe

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

hack/.staticcheck_failures

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ pkg/controller/podautoscaler
66
pkg/controller/replicaset
77
pkg/controller/resourcequota
88
pkg/controller/statefulset
9-
pkg/probe/http
109
pkg/registry/autoscaling/horizontalpodautoscaler/storage
1110
pkg/registry/core/namespace/storage
1211
pkg/registry/core/persistentvolumeclaim/storage

pkg/probe/http/http_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func TestHTTPProbeProxy(t *testing.T) {
7373

7474
go func() {
7575
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
76-
fmt.Fprintf(w, res)
76+
fmt.Fprint(w, res)
7777
})
7878
err := http.ListenAndServe(":9098", nil)
7979
if err != nil {

0 commit comments

Comments
 (0)