Skip to content

Commit

Permalink
Merge pull request #1301 from wakmusic/1296-deuplicate-song-play-is-c…
Browse files Browse the repository at this point in the history
…rash

🔀 :: (#1296) 중복된 곡을 삭제할 때 Crash나는 이슈 해결
  • Loading branch information
baekteun authored Sep 22, 2024
2 parents 9757292 + 214b38f commit 7a5c53e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ final class Playlist {
}

func remove(at index: Int) {
guard list[safe: index] != nil else { return }
list.remove(at: index)
}

Expand Down

0 comments on commit 7a5c53e

Please sign in to comment.