Return NaN in default case

This commit is contained in:
SileNce5k 2022-06-11 21:34:07 +02:00
parent 64409c890a
commit 5feaa89583
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -15,7 +15,7 @@ module.exports = function(time){
timeInSeconds = timeInSeconds * 86400;
break;
default:
timeInSeconds = -1;
timeInSeconds = NaN;
}
return timeInSeconds;
}