lib/protoparser: fix golangci-lint warning after f579cac297

This commit is contained in:
Aliaksandr Valialkin 2023-02-23 18:49:49 -08:00
parent b285207aa7
commit c734416f86
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -35,7 +35,7 @@ func HandleVMProtoClientHandshake(remoteWriteURL *url.URL) bool {
func HandleVMProtoServerHandshake(w http.ResponseWriter, r *http.Request) bool {
q := r.URL.Query()
if q.Get("get_vm_proto_version") != "" {
io.WriteString(w, "1")
_, _ = io.WriteString(w, "1")
return true
}
return false