]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/middlewares/reqValidators/pods.js
Add tags support to server
[github/Chocobozzz/PeerTube.git] / server / middlewares / reqValidators / pods.js
index 45e34c1ab9e726727b54617b0e849786ed1ccfa3..77449480c43df174acedc217c428f569f0af8612 100644 (file)
@@ -10,13 +10,13 @@ const reqValidatorsPod = {
 }
 
 function makeFriends (req, res, next) {
-  friends.hasFriends(function (err, has_friends) {
+  friends.hasFriends(function (err, hasFriends) {
     if (err) {
       logger.error('Cannot know if we have friends.', { error: err })
       res.sendStatus(500)
     }
 
-    if (has_friends === true) {
+    if (hasFriends === true) {
       // We need to quit our friends before make new ones
       res.sendStatus(409)
     } else {