From cc612a4e3ea027fea14d1aa4eeaf05caabad7468 Mon Sep 17 00:00:00 2001 From: Vildravn Date: Sat, 31 Oct 2020 15:02:23 +0100 Subject: [PATCH] polish[#1628]: Lint fix --- src/client/ui/templates/hud/hud.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/ui/templates/hud/hud.js b/src/client/ui/templates/hud/hud.js index 304c4b7e..d0c29283 100644 --- a/src/client/ui/templates/hud/hud.js +++ b/src/client/ui/templates/hud/hud.js @@ -107,9 +107,8 @@ define([ let elapsed = quickItem.cdMax - quickItem.cd; let width = 1 - (elapsed / quickItem.cdMax); - if (width <= 0) { + if (width <= 0) width = 0; - } width = Math.ceil((width * 100) / 4) * 4;