Move to eslint
[oweals/peertube.git] / server / helpers / custom-validators / video-captions.ts
index d06eb3695216295d3239d49a53d2070b4c7c2059..9abbce04a110b3e7fae1b1fb5429ae6303b808df 100644 (file)
@@ -2,7 +2,7 @@ import { CONSTRAINTS_FIELDS, MIMETYPES, VIDEO_LANGUAGES } from '../../initialize
 import { exists, isFileValid } from './misc'
 
 function isVideoCaptionLanguageValid (value: any) {
-  return exists(value) && VIDEO_LANGUAGES[ value ] !== undefined
+  return exists(value) && VIDEO_LANGUAGES[value] !== undefined
 }
 
 const videoCaptionTypes = Object.keys(MIMETYPES.VIDEO_CAPTIONS.MIMETYPE_EXT)