client: change fmt.Fprint to fmt.Print in client_test.go
Running staticcheck noted these errors, which are fixed.
client/client_test.go:37:2: printf-style function with dynamic format
string and no further arguments should use print-style function instead
(SA1006)
client/client_test.go:41:2: printf-style function with dynamic format
string and no further arguments should use print-style function instead
(SA1006)
Change-Id: I43d4f03788f1188a98cff895670406b259da302a
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/356171
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dominik Honnef <dominik@honnef.co>
diff --git a/client/client_test.go b/client/client_test.go
index 309982b..09adda1 100644
--- a/client/client_test.go
+++ b/client/client_test.go
@@ -34,11 +34,11 @@
}`
func serveTestVuln(w http.ResponseWriter, req *http.Request) {
- fmt.Fprintf(w, testVuln)
+ fmt.Fprint(w, testVuln)
}
func serveIndex(w http.ResponseWriter, req *http.Request) {
- fmt.Fprintf(w, index)
+ fmt.Fprint(w, index)
}
// testCache for testing purposes