Ameba: Fix Lint/UselessAssign

This commit is contained in:
syeopite
2024-07-17 12:39:40 -07:00
parent bad92093bf
commit fad0a4f52d
9 changed files with 7 additions and 13 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