Return back on the main thread

This commit is contained in:
Maurice Parker 2020-04-27 19:06:50 -05:00
parent bdc02f0b0b
commit 5e18b2b569
1 changed files with 3 additions and 1 deletions

View File

@ -365,7 +365,9 @@ extension CloudKitZone {
self.delete(cursor: cursor, carriedRecords: records, completion: completion)
} else {
guard !records.isEmpty else {
DispatchQueue.main.async {
completion(.success(()))
}
return
}