From 90e96d7e24eb66940cd56bd0591d1bdd20b3afc2 Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Thu, 25 Jan 2024 10:50:42 +0100 Subject: [PATCH] more cleanup --- resources/main.mjs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/resources/main.mjs b/resources/main.mjs index 71c465d1c..b0b48946a 100644 --- a/resources/main.mjs +++ b/resources/main.mjs @@ -358,10 +358,8 @@ class MainBenchmarkClient { } _updateDocumentTitle(hash) { - let sectionTitle = ""; const maybeSection = document.querySelector(hash); - if (maybeSection) - sectionTitle = maybeSection.getAttribute("data-title") ?? ""; + const sectionTitle = maybeSection?.getAttribute("data-title") ?? ""; document.title = `Speedometer 3 ${sectionTitle}`.trimEnd(); }