fix staticcheck failures of pkg/probe/http

This commit is contained in:
SataQiu
2020-04-10 12:14:25 +08:00
parent 3d350d86d6
commit 68ba2fecc1
2 changed files with 1 additions and 2 deletions

View File

@@ -73,7 +73,7 @@ func TestHTTPProbeProxy(t *testing.T) {
go func() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, res)
fmt.Fprint(w, res)
})
err := http.ListenAndServe(":9098", nil)
if err != nil {