We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc31c31 commit 8edaa50Copy full SHA for 8edaa50
1 file changed
Sources/SQLiteData/CloudKit/Internal/MockCloudDatabase.swift
@@ -26,10 +26,8 @@
26
RecordEntry(record: record, history: [:])
27
return
28
}
29
- if let existingRecordChangeTag = existingEntry.record._recordChangeTag,
30
- let existingRecordCopy = existingEntry.record.copy() as? CKRecord
31
- {
32
- existingEntry.history[existingRecordChangeTag] = existingRecordCopy
+ if let existingRecordChangeTag = existingEntry.record._recordChangeTag {
+ existingEntry.history[existingRecordChangeTag] = existingEntry.record.copy() as? CKRecord
33
34
existingEntry.record = record
35
storage[record.recordID.zoneID]?.entries[record.recordID] = existingEntry
0 commit comments