Use const where possible
This commit is contained in:
parent
72a0d10c19
commit
b45d3bc9fb
3 changed files with 6 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
module.exports = function(time, currentUnixTime){
|
||||
let timeInSeconds = parseFloat(time)
|
||||
const letterCount = time.length - timeInSeconds.toString().length;
|
||||
let letter = time.slice(time.length - letterCount);
|
||||
const letter = time.slice(time.length - letterCount);
|
||||
switch (letter.toUpperCase()) {
|
||||
case "H":
|
||||
timeInSeconds = timeInSeconds * 3_600;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue