diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-09-04 21:45:05 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-09-04 21:45:05 +0200 |
commit | 980246ea8f1c51a137eaf0c441ef7e3b6fb88810 (patch) | |
tree | 0ce1339bc1d56a2dfd35935fe4f0303df8f75eca /server/middlewares/validators | |
parent | 8221fef0f9d9b426fa498840d3f4fe2abfe19788 (diff) | |
download | PeerTube-980246ea8f1c51a137eaf0c441ef7e3b6fb88810.tar.gz PeerTube-980246ea8f1c51a137eaf0c441ef7e3b6fb88810.tar.zst PeerTube-980246ea8f1c51a137eaf0c441ef7e3b6fb88810.zip |
Make tslint happy
Diffstat (limited to 'server/middlewares/validators')
-rw-r--r-- | server/middlewares/validators/videos.ts | 2 |
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).') |