Skip to content

Commit 8edaa50

Browse files
committed
clean up
1 parent cc31c31 commit 8edaa50

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Sources/SQLiteData/CloudKit/Internal/MockCloudDatabase.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@
2626
RecordEntry(record: record, history: [:])
2727
return
2828
}
29-
if let existingRecordChangeTag = existingEntry.record._recordChangeTag,
30-
let existingRecordCopy = existingEntry.record.copy() as? CKRecord
31-
{
32-
existingEntry.history[existingRecordChangeTag] = existingRecordCopy
29+
if let existingRecordChangeTag = existingEntry.record._recordChangeTag {
30+
existingEntry.history[existingRecordChangeTag] = existingEntry.record.copy() as? CKRecord
3331
}
3432
existingEntry.record = record
3533
storage[record.recordID.zoneID]?.entries[record.recordID] = existingEntry

0 commit comments

Comments
 (0)