From 6e35f2e0c4e222385fccd1ecaa2125919363d7f5 Mon Sep 17 00:00:00 2001 From: Kayla Kremer Date: Fri, 23 Jun 2023 12:30:44 -0400 Subject: [PATCH] refactor: remove unnecessary <= --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 9d6c7ce..4a2aff0 100644 --- a/index.js +++ b/index.js @@ -33,7 +33,7 @@ const toHHMM = (input) => { total = Math.abs(total); const hours = Math.floor(total / 60); let minutes = total % 60; - if (minutes >= 59.5 && minutes <= 60) { + if (minutes >= 59.5 && minutes < 60) { minutes = Math.floor(minutes); } else { minutes = Math.round(minutes);