Skip to content

Commit c7297a4

Browse files
authored
Merge pull request kubernetes#87646 from SataQiu/staticcheck-20200129
Fix staticcheck failures of pkg/probe/http
2 parents 1c01efe + 68ba2fe commit c7297a4

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)