From 5feaa895835a9cb6b04543ea42b7c958da4b9168 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Sat, 11 Jun 2022 21:34:07 +0200 Subject: [PATCH] Return NaN in default case --- util/timer/parseTime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/timer/parseTime.js b/util/timer/parseTime.js index 3fcdb0e..e2f9511 100644 --- a/util/timer/parseTime.js +++ b/util/timer/parseTime.js @@ -15,7 +15,7 @@ module.exports = function(time){ timeInSeconds = timeInSeconds * 86400; break; default: - timeInSeconds = -1; + timeInSeconds = NaN; } return timeInSeconds; }