Skip to content

Commit 3f3c731

Browse files
committed
Revert syntax updates to fix failing test
1 parent 13b3bf4 commit 3f3c731

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/ios/SwiftUICatalog/Views/Authenticate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ struct FlexSyncContentView: View {
113113
let dogSubscriptionExists = subs.first(named: "dogs")
114114
// Check whether the subscription already exists. Adding it more
115115
// than once causes an error.
116-
if peopleSubscriptionExists && dogSubscriptionExists {
116+
if (peopleSubscriptionExists != nil) && (dogSubscriptionExists != nil) {
117117
// Existing subscriptions found - do nothing
118118
return
119119
} else {

source/examples/generated/swiftui/Authenticate.snippet.flexible-sync-view-with-client-reset-handling.swift.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
let dogSubscriptionExists = subs.first(named: "dogs")
3232
// Check whether the subscription already exists. Adding it more
3333
// than once causes an error.
34-
if peopleSubscriptionExists && dogSubscriptionExists {
34+
if (peopleSubscriptionExists != nil) && (dogSubscriptionExists != nil) {
3535
// Existing subscriptions found - do nothing
3636
return
3737
} else {

0 commit comments

Comments
 (0)