simplified no longer necessary else statement

pull/6687/head
alex 2024-10-30 18:54:16 -04:00
parent 20eb53a16d
commit 4f9b65ffaa
1 changed files with 1 additions and 1 deletions

View File

@ -998,7 +998,6 @@ export default {
this.pm = currentHour > 11; this.pm = currentHour > 11;
if (currentHour >= 12) currentHour = currentHour == 12 ? 12 : currentHour - 12; if (currentHour >= 12) currentHour = currentHour == 12 ? 12 : currentHour - 12;
else currentHour = currentHour == 0 ? 0 : currentHour;
} }
this.currentHour = Math.floor(currentHour / this.stepHour) * this.stepHour; this.currentHour = Math.floor(currentHour / this.stepHour) * this.stepHour;
@ -1586,6 +1585,7 @@ export default {
newHour = newHour <= 0 ? 12 + newHour : newHour; newHour = newHour <= 0 ? 12 + newHour : newHour;
} }
1;
if (this.validateTime(newHour, this.currentMinute, this.currentSecond, newPM)) { if (this.validateTime(newHour, this.currentMinute, this.currentSecond, newPM)) {
this.currentHour = newHour; this.currentHour = newHour;