Skip to content

Commit 48a1173

Browse files
Copilottnfssc
andcommitted
fix: replace forEach with for-in in pasteboard restore loop
Co-authored-by: tnfssc <29162020+tnfssc@users.noreply.github.com>
1 parent 590095f commit 48a1173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OpenWisprMac/PasteInjector.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ enum PasteInjector {
5959
let restoredItems: [NSPasteboardItem] =
6060
snapshot.items.map { snapshotItem in
6161
let item = NSPasteboardItem()
62-
snapshotItem.entries.forEach { entry in
62+
for entry in snapshotItem.entries {
6363
item.setData(entry.data, forType: entry.type)
6464
}
6565
return item

0 commit comments

Comments
 (0)