Ameba: Fix Lint/UselessAssign (#4795)

Related to issue 2231
This commit is contained in:
Samantaz Fox committed 2024-08-11 13:38:29 +02:00
commit 5e38ef59da
8 files changed
+6 -12

No files matched your search

+1 -1
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