aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/videos.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-25 16:52:01 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-26 09:11:38 +0200
commitd412e80e5f748f92118541a5334c14ebd4a90881 (patch)
tree3f0a240fadc0cf1f63ef087515b2e2cd253a6b79 /server/middlewares/validators/videos.ts
parent404b54e14f6623c1644a8c87ca22f4bab98d5484 (diff)
downloadPeerTube-d412e80e5f748f92118541a5334c14ebd4a90881.tar.gz
PeerTube-d412e80e5f748f92118541a5334c14ebd4a90881.tar.zst
PeerTube-d412e80e5f748f92118541a5334c14ebd4a90881.zip
Fix lint
Diffstat (limited to 'server/middlewares/validators/videos.ts')
-rw-r--r--server/middlewares/validators/videos.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/videos.ts b/server/middlewares/validators/videos.ts
index 8a9b383b8..a032d14ce 100644
--- a/server/middlewares/validators/videos.ts
+++ b/server/middlewares/validators/videos.ts
@@ -79,7 +79,7 @@ const videosAddValidator = [
79 }) 79 })
80 .then(duration => { 80 .then(duration => {
81 // Previous test failed, abort 81 // Previous test failed, abort
82 if (duration === undefined) return 82 if (duration === undefined) return undefined
83 83
84 if (!isVideoDurationValid('' + duration)) { 84 if (!isVideoDurationValid('' + duration)) {
85 return res.status(400) 85 return res.status(400)