From d412e80e5f748f92118541a5334c14ebd4a90881 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 25 Oct 2017 16:52:01 +0200 Subject: Fix lint --- server/middlewares/validators/videos.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/middlewares') 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 = [ }) .then(duration => { // Previous test failed, abort - if (duration === undefined) return + if (duration === undefined) return undefined if (!isVideoDurationValid('' + duration)) { return res.status(400) -- cgit v1.2.3