diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-08 13:08:34 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-08 13:14:02 +0200 |
commit | b7c8304cfd954846852f47430ecf03f39ce85099 (patch) | |
tree | cf932754089ff37b2ff2c1addb40c22eeb19582e /server/helpers/core-utils.ts | |
parent | 37ede348bb553d7065e919a1fc20039f49d395b7 (diff) | |
download | PeerTube-b7c8304cfd954846852f47430ecf03f39ce85099.tar.gz PeerTube-b7c8304cfd954846852f47430ecf03f39ce85099.tar.zst PeerTube-b7c8304cfd954846852f47430ecf03f39ce85099.zip |
Fix toEven
Diffstat (limited to 'server/helpers/core-utils.ts')
-rw-r--r-- | server/helpers/core-utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/core-utils.ts b/server/helpers/core-utils.ts index f7e6fdddc..9abc532d2 100644 --- a/server/helpers/core-utils.ts +++ b/server/helpers/core-utils.ts | |||
@@ -248,7 +248,7 @@ function isOdd (num: number) { | |||
248 | } | 248 | } |
249 | 249 | ||
250 | function toEven (num: number) { | 250 | function toEven (num: number) { |
251 | if (isOdd) return num + 1 | 251 | if (isOdd(num)) return num + 1 |
252 | 252 | ||
253 | return num | 253 | return num |
254 | } | 254 | } |