From 98289c5f935c66c12e5874f5a536c25f98960362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20M=2E?= <34163393+amtins@users.noreply.github.com> Date: Mon, 9 Dec 2024 13:55:32 +0100 Subject: [PATCH] style(countdown): remove unnecessary brackets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Gaƫtan Muller --- static/showcases/countdown.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/static/showcases/countdown.html b/static/showcases/countdown.html index 120e26e..0aadd2b 100644 --- a/static/showcases/countdown.html +++ b/static/showcases/countdown.html @@ -138,14 +138,14 @@

Display Countdown

let diff = totalInMilliseconds; // Calculate days, hours, minutes, and seconds - let days = Math.floor(diff / (DAYS)); - diff -= days * (DAYS); + let days = Math.floor(diff / DAYS); + diff -= days * DAYS; - let hours = Math.floor(diff / (HOURS)); - diff -= hours * (HOURS); + let hours = Math.floor(diff / HOURS); + diff -= hours * HOURS; - let minutes = Math.floor(diff / (MINUTES)); - diff -= minutes * (MINUTES); + let minutes = Math.floor(diff / MINUTES); + diff -= minutes * MINUTES; let seconds = Math.floor(diff / SECONDS_IN_MS);