1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00

We don't need to instantiate this separately

This commit is contained in:
Daniel Barber 2019-06-22 13:44:38 -04:00
parent 616880415f
commit 1af2c939a2
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -51,8 +51,7 @@ class QueueDataSource: NSObject, NSOutlineViewDataSource {
artist: queueItem.song.artist
)
let encoder = PropertyListEncoder()
let data = try! encoder.encode(draggedSong)
let data = try! PropertyListEncoder().encode(draggedSong)
pasteboardItem.setData(data, forType: .songPasteboardType)