From 24825f90eaf00f8af75015ddba37a27c79280165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20Kr=C3=B6ger?= Date: Wed, 27 Sep 2023 13:31:39 +0200 Subject: [PATCH] fix some linter errors --- src/components/services/ping.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/services/ping.jsx b/src/components/services/ping.jsx index a14fa660..d6fc61a4 100644 --- a/src/components/services/ping.jsx +++ b/src/components/services/ping.jsx @@ -23,8 +23,8 @@ export default function Ping({ group, service, style }) { ); } - var statusText = `HTTP status ${data.status}`; - var status; + let statusText = `HTTP status ${data.status}`; + let status; if (data.status > 403) { if (style === "basic") { @@ -43,7 +43,7 @@ export default function Ping({ group, service, style }) { } // Sucessful ping - var ping = t("common.ms", { value: data.latency, style: "unit", unit: "millisecond", maximumFractionDigits: 0 }) + const ping = t("common.ms", { value: data.latency, style: "unit", unit: "millisecond", maximumFractionDigits: 0 }) statusText += ` (${ping})`;