lib/protoparser: fix golangci-lint warning after f579cac297

This commit is contained in:
Aliaksandr Valialkin 2023-02-23 18:49:49 -08:00
parent f579cac297
commit 04365b949e
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 { func HandleVMProtoServerHandshake(w http.ResponseWriter, r *http.Request) bool {
q := r.URL.Query() q := r.URL.Query()
if q.Get("get_vm_proto_version") != "" { if q.Get("get_vm_proto_version") != "" {
io.WriteString(w, "1") _, _ = io.WriteString(w, "1")
return true return true
} }
return false return false