aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/checker.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-07-11 17:04:57 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-07-11 17:05:55 +0200
commit075f16caac5236cb04c98ae7b3a989766d764bb3 (patch)
tree9a30024aa771735a28d83d9a166033b82dbcaf60 /server/initializers/checker.ts
parent4e979c3e1b81f4762025d9db3052b1f70774b3bb (diff)
downloadPeerTube-075f16caac5236cb04c98ae7b3a989766d764bb3.tar.gz
PeerTube-075f16caac5236cb04c98ae7b3a989766d764bb3.tar.zst
PeerTube-075f16caac5236cb04c98ae7b3a989766d764bb3.zip
Remove "function" in favor of () => {}
Diffstat (limited to 'server/initializers/checker.ts')
-rw-r--r--server/initializers/checker.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/initializers/checker.ts b/server/initializers/checker.ts
index fb69e05fc..e4ca26f9c 100644
--- a/server/initializers/checker.ts
+++ b/server/initializers/checker.ts
@@ -45,7 +45,7 @@ function checkFFmpeg () {
45 if (CONFIG.TRANSCODING.ENABLED === false) return undefined 45 if (CONFIG.TRANSCODING.ENABLED === false) return undefined
46 46
47 const canEncode = [ 'libx264' ] 47 const canEncode = [ 'libx264' ]
48 canEncode.forEach(function (codec) { 48 canEncode.forEach(codec => {
49 if (codecs[codec] === undefined) { 49 if (codecs[codec] === undefined) {
50 throw new Error('Unknown codec ' + codec + ' in FFmpeg.') 50 throw new Error('Unknown codec ' + codec + ' in FFmpeg.')
51 } 51 }