From debcac4924a88ebad51d559733d6ed006541a1fd Mon Sep 17 00:00:00 2001 From: LouisLam Date: Tue, 10 Aug 2021 20:00:59 +0800 Subject: [PATCH] run eslint --- server/prometheus.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/server/prometheus.js b/server/prometheus.js index ef3b0352d..3e4767b3d 100644 --- a/server/prometheus.js +++ b/server/prometheus.js @@ -45,13 +45,10 @@ class Prometheus { } update(heartbeat, tlsInfo) { - - // TODO: TLS Info here - - if (typeof tlsInfo !== "undefined"){ + if (typeof tlsInfo !== "undefined") { try { - var is_valid = 0 - if (tlsInfo.valid == true){ + let is_valid = 0 + if (tlsInfo.valid == true) { is_valid = 1 } else { is_valid = 0