mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-12 19:03:47 +00:00
Small clean-up (#1827)
* chore: avoid shadow variable name * chore: map could just be foreach * clean uneeded template literal * lint
This commit is contained in:
committed by
GitHub
parent
9b36f36f73
commit
45e7373279
Vendored
+2
-2
@@ -123,8 +123,8 @@ function formatTimer(number) {
|
||||
* @param {number} number - The number to pad
|
||||
* @returns {string} The padded number string
|
||||
*/
|
||||
function leftPad(number) {
|
||||
return Math.floor(number).toString().padStart(2, '0');
|
||||
function leftPad(val) {
|
||||
return Math.floor(val).toString().padStart(2, '0');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user