Ameba: Fix Lint/UselessAssign (#4795)

Related to issue 2231
This commit is contained in:
Samantaz Fox
2024-08-11 13:38:29 +02:00
8 changed files with 6 additions and 12 deletions

View File

@@ -124,7 +124,7 @@ struct Invidious::User
playlist = create_playlist(title, privacy, user)
Invidious::Database::Playlists.update_description(playlist.id, description)
videos = item["videos"]?.try &.as_a?.try &.each_with_index do |video_id, idx|
item["videos"]?.try &.as_a?.try &.each_with_index do |video_id, idx|
if idx > CONFIG.playlist_length_limit
raise InfoException.new("Playlist cannot have more than #{CONFIG.playlist_length_limit} videos")
end