From df98563e2104b82b119c00a3cd83cd0dc1242d25 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 16 Jun 2017 14:32:15 +0200 Subject: Use typescript standard and lint all files --- server/lib/jobs/handlers/video-transcoder.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/lib/jobs/handlers/video-transcoder.ts') diff --git a/server/lib/jobs/handlers/video-transcoder.ts b/server/lib/jobs/handlers/video-transcoder.ts index efa18ef2d..6f606a7d3 100644 --- a/server/lib/jobs/handlers/video-transcoder.ts +++ b/server/lib/jobs/handlers/video-transcoder.ts @@ -13,9 +13,9 @@ function process (data: { id: string }, callback: (err: Error, videoInstance?: V }) } -function onError (err: Error, jobId: number, video: VideoInstance, callback: () => void) { +function onError (err: Error, jobId: number, video: VideoInstance, callback: (err: Error) => void) { logger.error('Error when transcoding video file in job %d.', jobId, { error: err }) - return callback() + return callback(null) } function onSuccess (data: any, jobId: number, video: VideoInstance, callback: (err: Error) => void) { -- cgit v1.2.3