Skip to content

Commit 56a9c6f

Browse files
committed
Fixed build issues when ICLOUD is defined
1 parent ec1adef commit 56a9c6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ConfCore/UserDataSyncEngine.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ public final class UserDataSyncEngine {
324324

325325
let notification = CKNotification(fromRemoteNotificationDictionary: userInfo)
326326

327-
guard notification.subscriptionID == Constants.privateSubscriptionId else { return false }
327+
guard notification?.subscriptionID == Constants.privateSubscriptionId else { return false }
328328

329329
os_log("Received remote CloudKit notification for user data", log: log, type: .debug)
330330

WWDC/LiveObserver.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ private final class CloudKitLiveObserver {
258258
let notification = CKNotification(fromRemoteNotificationDictionary: userInfo)
259259

260260
// check if the remote notification is for us, if not, tell the caller that we haven't handled it
261-
guard notification.subscriptionID == specialLiveEventsSubscriptionID else { return false }
261+
guard notification?.subscriptionID == specialLiveEventsSubscriptionID else { return false }
262262

263263
// notification for special live events, just fetch everything again
264264
fetch()

0 commit comments

Comments
 (0)