mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Fix toEven
This commit is contained in:
parent
37ede348bb
commit
b7c8304cfd
2 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue