Simplify for loop

pull/6026/head
Chocobozzz 2023-10-30 11:17:46 +01:00
parent 98ddba6808
commit ad801093b9
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ function timeToInt (time: number | string) {
}
let result = 0
for (let i = parts.length - 1; i >= 0; i--) {
for (let i = 0; i < parts.length; i++) {
const partInt = parseInt(parts[i], 10)
if (isNaN(partInt)) return 0