lint fixes

This commit is contained in:
vcoppe committed 2026-10-28 22:40:48 +01:00
1 parent f5a2db0565
commit 6956c19410
45 files changed
+243 -244

No files matched your search

@@ -101,10 +101,7 @@
if (typeof hours === 'string') {
hours = parseInt(hours);
}
if (hours >= 0) {
} else if (hours < 0) {
hours = 0;
} else {
if (hours < 0) {
hours = 0;
}
onChange();
@@ -124,12 +121,9 @@
if (typeof minutes === 'string') {
minutes = parseInt(minutes);
}
if (minutes >= 0 && (minutes <= 59 || !showHours)) {
} else if (minutes < 0) {
minutes = 0;
} else if (showHours && minutes > 59) {
if (showHours && minutes > 59) {
minutes = 59;
} else {
} else if (minutes < 0) {
minutes = 0;
}
minutes = minutes.toString().padStart(showHours ? 2 : 1, '0');
@@ -149,12 +143,9 @@
if (typeof seconds === 'string') {
seconds = parseInt(seconds);
}
if (seconds >= 0 && seconds <= 59) {
} else if (seconds < 0) {
seconds = 0;
} else if (seconds > 59) {
if (seconds > 59) {
seconds = 59;
} else {
} else if (seconds < 0) {
seconds = 0;
}
seconds = seconds.toString().padStart(2, '0');