From 144b8f1b4ca96bfae919226fa45732401c4e50f3 Mon Sep 17 00:00:00 2001 From: Matthew Macdonald-Wallace Date: Tue, 16 Nov 2021 19:30:08 +0000 Subject: [PATCH] Fix eslint errors for var definitions --- server/prometheus.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/prometheus.js b/server/prometheus.js index f0af7c39..1ce6ff97 100644 --- a/server/prometheus.js +++ b/server/prometheus.js @@ -42,8 +42,9 @@ class Prometheus { monitor_hostname: monitor.hostname, monitor_port: monitor.port }; - for (var t in monitor.tags) { - this.monitorLabelValues[k] = monitor.tags[k]; + + for (let tag in monitor.tags) { + this.monitorLabelValues[tag] = monitor.tags[tag]; } }