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

Update to standard 7. Goodbye snake_case, I used to love you

This commit is contained in:
Chocobozzz 2016-05-11 21:19:34 +02:00
parent 881a5e68b6
commit bc503c2a62
27 changed files with 349 additions and 351 deletions

View 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 {