]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/core-utils.ts
Use postgres 10 for tests
[github/Chocobozzz/PeerTube.git] / server / helpers / core-utils.ts
index f7e6fdddcf79fb0ec70c37b96301b36fa91c9aa3..9abc532d28741f94c9dec872de8734a32b0f1f41 100644 (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
 }