RaP: Dir.glob accepts a block directly, no need for a temp variable
This commit is contained in:
parent
620ed367be
commit
7f92b58140
@ -126,8 +126,7 @@ caption_file_notify = proc do |json_filename|
|
|||||||
file.write(JSON.pretty_generate(captions_info))
|
file.write(JSON.pretty_generate(captions_info))
|
||||||
end
|
end
|
||||||
|
|
||||||
caption_scripts = Dir.glob(File.expand_path('captions/*', __dir__))
|
Dir.glob(File.expand_path('captions/*', __dir__)) do |caption_script|
|
||||||
caption_scripts.each do |caption_script|
|
|
||||||
next unless File.file?(caption_script) && File.executable?(caption_script)
|
next unless File.file?(caption_script) && File.executable?(caption_script)
|
||||||
|
|
||||||
logger.info("Running caption integration script #{caption_script}")
|
logger.info("Running caption integration script #{caption_script}")
|
||||||
|
Loading…
Reference in New Issue
Block a user