From a15871560f80e07386c1dabb8370cd2664ecfd1f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 31 Jan 2020 16:56:52 +0100 Subject: Move to eslint --- server/helpers/custom-validators/video-abuses.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'server/helpers/custom-validators/video-abuses.ts') diff --git a/server/helpers/custom-validators/video-abuses.ts b/server/helpers/custom-validators/video-abuses.ts index a9478c76a..5c7bc6fd9 100644 --- a/server/helpers/custom-validators/video-abuses.ts +++ b/server/helpers/custom-validators/video-abuses.ts @@ -1,8 +1,6 @@ -import { Response } from 'express' import validator from 'validator' import { CONSTRAINTS_FIELDS, VIDEO_ABUSE_STATES } from '../../initializers/constants' import { exists } from './misc' -import { VideoAbuseModel } from '../../models/video/video-abuse' const VIDEO_ABUSES_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEO_ABUSES @@ -15,7 +13,7 @@ function isVideoAbuseModerationCommentValid (value: string) { } function isVideoAbuseStateValid (value: string) { - return exists(value) && VIDEO_ABUSE_STATES[ value ] !== undefined + return exists(value) && VIDEO_ABUSE_STATES[value] !== undefined } // --------------------------------------------------------------------------- -- cgit v1.2.3