Ameba: Fix Lint/ShadowingOuterLocalVar

This commit is contained in:
syeopite
2024-07-26 19:22:42 -07:00
parent d1cd790388
commit ecbea0b67b
3 changed files with 5 additions and 5 deletions

View File

@@ -110,13 +110,13 @@ module Invidious::Videos
"Language" => @language_code,
}
vtt = WebVTT.build(settings_field) do |vtt|
vtt = WebVTT.build(settings_field) do |builder|
@lines.each do |line|
# Section headers are excluded from the VTT conversion as to
# match the regular captions returned from YouTube as much as possible
next if line.is_a? HeadingLine
vtt.cue(line.start_ms, line.end_ms, line.line)
builder.cue(line.start_ms, line.end_ms, line.line)
end
end