@ -45,13 +45,10 @@ class Prometheus {
}
update(heartbeat, tlsInfo) {
if (typeof tlsInfo !== "undefined") {
// TODO: TLS Info here
if (typeof tlsInfo !== "undefined"){
try {
var is_valid = 0
let is_valid = 0
if (tlsInfo.valid == true){
if (tlsInfo.valid == true) {
is_valid = 1
} else {
is_valid = 0