diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-02-07 12:02:26 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-02-07 12:02:26 +0100 |
commit | 1bfd1a920f2df891ecd50e3a7ae8dca3bc8746b4 (patch) | |
tree | ea12b191a56f153898336f5356e1a2b247866ee1 /middlewares/reqValidators/pods.js | |
parent | ac2f99eb75ea0295dc08e47b91f4b4d54829d004 (diff) | |
download | PeerTube-1bfd1a920f2df891ecd50e3a7ae8dca3bc8746b4.tar.gz PeerTube-1bfd1a920f2df891ecd50e3a7ae8dca3bc8746b4.tar.zst PeerTube-1bfd1a920f2df891ecd50e3a7ae8dca3bc8746b4.zip |
Return with a callback function
Diffstat (limited to 'middlewares/reqValidators/pods.js')
-rw-r--r-- | middlewares/reqValidators/pods.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/middlewares/reqValidators/pods.js b/middlewares/reqValidators/pods.js index 7d1612dde..ef09d51cf 100644 --- a/middlewares/reqValidators/pods.js +++ b/middlewares/reqValidators/pods.js | |||
@@ -20,7 +20,7 @@ function makeFriends (req, res, next) { | |||
20 | // We need to quit our friends before make new ones | 20 | // We need to quit our friends before make new ones |
21 | res.sendStatus(409) | 21 | res.sendStatus(409) |
22 | } else { | 22 | } else { |
23 | next() | 23 | return next() |
24 | } | 24 | } |
25 | }) | 25 | }) |
26 | } | 26 | } |