mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00
Simplify for loop
This commit is contained in:
parent
98ddba6808
commit
ad801093b9
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ function timeToInt (time: number | string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
let result = 0
|
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)
|
const partInt = parseInt(parts[i], 10)
|
||||||
if (isNaN(partInt)) return 0
|
if (isNaN(partInt)) return 0
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue