fix some linter errors

pull/2074/head
Luca Kröger 1 year ago
parent 58c7fb15ea
commit 24825f90ea

@ -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})`;

Loading…
Cancel
Save