Skip to content
Snippets Groups Projects
Commit 7f92b581 authored by Calvin Walton's avatar Calvin Walton
Browse files

RaP: Dir.glob accepts a block directly, no need for a temp variable

parent 620ed367
No related branches found
No related tags found
No related merge requests found
......@@ -126,8 +126,7 @@ caption_file_notify = proc do |json_filename|
file.write(JSON.pretty_generate(captions_info))
end
caption_scripts = Dir.glob(File.expand_path('captions/*', __dir__))
caption_scripts.each do |caption_script|
Dir.glob(File.expand_path('captions/*', __dir__)) do |caption_script|
next unless File.file?(caption_script) && File.executable?(caption_script)
logger.info("Running caption integration script #{caption_script}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment