Skip to content

Commit

Permalink
Merge pull request #72 from riccoyu/fix_swift5.7_if_let
Browse files Browse the repository at this point in the history
Fix compiling errors caused by if let shorthand, when compiling with …
  • Loading branch information
brentsimmons committed May 15, 2023
2 parents 08d0600 + ee16bde commit 2412f49
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Sources/RSCore/CloudKit/CloudKitZone.swift
Original file line number Diff line number Diff line change
Expand Up @@ -764,10 +764,10 @@ public extension CloudKitZone {
guard incremental else { return }

wasChanged(updated: updatedRecords, deleted: deletedRecordKeys, token: token) { error in
if let error {
op.cancel()
completion(.failure(error))
}
if let error = error {
op.cancel()
completion(.failure(error))
}
}
updatedRecords = [CKRecord]()
deletedRecordKeys = [CloudKitRecordKey]()
Expand All @@ -785,10 +785,10 @@ public extension CloudKitZone {
op.recordZoneFetchCompletionBlock = { zoneID ,token, _, finalChange, error in
if case .success = CloudKitZoneResult.resolve(error) {
wasChanged(updated: updatedRecords, deleted: deletedRecordKeys, token: token) { error in
if let error {
op.cancel()
completion(.failure(error))
}
if let error = error {
op.cancel()
completion(.failure(error))
}
}
}
updatedRecords = [CKRecord]()
Expand Down

0 comments on commit 2412f49

Please sign in to comment.