aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/videos.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-09-04 21:45:05 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-09-04 21:45:05 +0200
commit980246ea8f1c51a137eaf0c441ef7e3b6fb88810 (patch)
tree0ce1339bc1d56a2dfd35935fe4f0303df8f75eca /server/middlewares/validators/videos.ts
parent8221fef0f9d9b426fa498840d3f4fe2abfe19788 (diff)
downloadPeerTube-980246ea8f1c51a137eaf0c441ef7e3b6fb88810.tar.gz
PeerTube-980246ea8f1c51a137eaf0c441ef7e3b6fb88810.tar.zst
PeerTube-980246ea8f1c51a137eaf0c441ef7e3b6fb88810.zip
Make tslint happy
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 1d19ebfd9..576814fcb 100644
--- a/server/middlewares/validators/videos.ts
+++ b/server/middlewares/validators/videos.ts
@@ -39,7 +39,7 @@ function videosAddValidator (req: express.Request, res: express.Response, next:
39 }) 39 })
40 .then(duration => { 40 .then(duration => {
41 // Previous test failed, abort 41 // Previous test failed, abort
42 if (duration === undefined) return 42 if (duration === undefined) return undefined
43 43
44 if (!isVideoDurationValid('' + duration)) { 44 if (!isVideoDurationValid('' + duration)) {
45 return res.status(400).send('Duration of the video file is too big (max: ' + CONSTRAINTS_FIELDS.VIDEOS.DURATION.max + 's).') 45 return res.status(400).send('Duration of the video file is too big (max: ' + CONSTRAINTS_FIELDS.VIDEOS.DURATION.max + 's).')