Return NaN in default case
This commit is contained in:
parent
64409c890a
commit
5feaa89583
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ module.exports = function(time){
|
|||
timeInSeconds = timeInSeconds * 86400;
|
||||
break;
|
||||
default:
|
||||
timeInSeconds = -1;
|
||||
timeInSeconds = NaN;
|
||||
}
|
||||
return timeInSeconds;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue