mirror of
https://github.com/mastodon/mastodon.git
synced 2025-10-05 08:33:00 +00:00
Use ENV.fetch
for ffmpeg/ffprobe defaults (#35081)
This commit is contained in:
parent
aa345c4630
commit
aac51707d1
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
Rails.application.configure do
|
||||
config.x.ffmpeg_binary = ENV['FFMPEG_BINARY'] || 'ffmpeg'
|
||||
config.x.ffprobe_binary = ENV['FFPROBE_BINARY'] || 'ffprobe'
|
||||
config.x.ffmpeg_binary = ENV.fetch('FFMPEG_BINARY', 'ffmpeg')
|
||||
config.x.ffprobe_binary = ENV.fetch('FFPROBE_BINARY', 'ffprobe')
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user