mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-16 10:15:18 -06:00
Simplify for loop
This commit is contained in:
parent
98ddba6808
commit
ad801093b9
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user