Fix more 'Lint/ShadowingOuterLocalVar' warnings reported by ameba

This commit is contained in:
Samantaz Fox
2022-01-20 17:17:22 +01:00
parent 1c91110464
commit 12b818a83c
10 changed files with 22 additions and 18 deletions

View File

@@ -202,8 +202,8 @@ struct InvidiousPlaylist
end
videos = get_playlist_videos(self, offset: offset, video_id: video_id)
videos.each_with_index do |video, index|
video.to_json(json, offset + index)
videos.each_with_index do |video, idx|
video.to_json(json, offset + idx)
end
end
end