diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-19 20:28:17 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-19 20:28:17 +0200 |
commit | 6e56eb63ac759f8deb3449116f952838313ad1a7 (patch) | |
tree | a53dcb81386f50a941594bf0235c909beb78a4b9 | |
parent | 13c14a902816f6e8d663ccb6af0d82662ed85ed1 (diff) | |
download | PeerTube-6e56eb63ac759f8deb3449116f952838313ad1a7.tar.gz PeerTube-6e56eb63ac759f8deb3449116f952838313ad1a7.tar.zst PeerTube-6e56eb63ac759f8deb3449116f952838313ad1a7.zip |
Return with callback with an error
-rw-r--r-- | server/controllers/api/v1/pods.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/v1/pods.js b/server/controllers/api/v1/pods.js index e216714d6..ecaeba666 100644 --- a/server/controllers/api/v1/pods.js +++ b/server/controllers/api/v1/pods.js | |||
@@ -117,7 +117,7 @@ function removePods (req, res, next) { | |||
117 | videos.removeRemoteVideos(videosList, function (err) { | 117 | videos.removeRemoteVideos(videosList, function (err) { |
118 | if (err) { | 118 | if (err) { |
119 | logger.error('Cannot remove remote videos.', { error: err }) | 119 | logger.error('Cannot remove remote videos.', { error: err }) |
120 | callback(err) | 120 | return callback(err) |
121 | } | 121 | } |
122 | 122 | ||
123 | return callback(null) | 123 | return callback(null) |