1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Fix toEven

This commit is contained in:
Chocobozzz 2021-06-08 13:08:34 +02:00
parent 37ede348bb
commit b7c8304cfd
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 3 additions and 5 deletions

View file

@ -248,7 +248,7 @@ function isOdd (num: number) {
}
function toEven (num: number) {
if (isOdd) return num + 1
if (isOdd(num)) return num + 1
return num
}