From 075f16caac5236cb04c98ae7b3a989766d764bb3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 11 Jul 2017 17:04:57 +0200 Subject: Remove "function" in favor of () => {} --- server/helpers/custom-validators/remote/videos.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/helpers/custom-validators/remote') diff --git a/server/helpers/custom-validators/remote/videos.ts b/server/helpers/custom-validators/remote/videos.ts index e14673cb3..b33d8c9be 100644 --- a/server/helpers/custom-validators/remote/videos.ts +++ b/server/helpers/custom-validators/remote/videos.ts @@ -33,7 +33,7 @@ const ENDPOINT_ACTIONS = REQUEST_ENDPOINT_ACTIONS[REQUEST_ENDPOINTS.VIDEOS] function isEachRemoteRequestVideosValid (requests: any[]) { return isArray(requests) && - requests.every(function (request) { + requests.every(request => { const video = request.data if (!video) return false @@ -63,7 +63,7 @@ function isEachRemoteRequestVideosValid (requests: any[]) { function isEachRemoteRequestVideosQaduValid (requests: any[]) { return isArray(requests) && - requests.every(function (request) { + requests.every(request => { const video = request.data if (!video) return false @@ -79,7 +79,7 @@ function isEachRemoteRequestVideosQaduValid (requests: any[]) { function isEachRemoteRequestVideosEventsValid (requests: any[]) { return isArray(requests) && - requests.every(function (request) { + requests.every(request => { const eventData = request.data if (!eventData) return false -- cgit v1.2.3