AddTracksToPlaylist panics when progress is omitted #20
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaroheinonen/my-spotify-playlist-sorter-go#20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The function accepts a
ui.Progressinterface and guardsStartandFinishwhen it is nil, but callsprogress.Advanceunconditionally atinternal/spotify/playlist.go#L136. A caller that omits progress receives a nil-interface panic after the first successful batch.A Spotify-shaped test server returning a successful add-tracks response reproduced the panic with one track and
progress == nil.