Skip to content

Commit 85e43f9

Browse files
run the correct version of swiftformat
1 parent c5edd1b commit 85e43f9

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

Example/watchOSSample/SampleWatchAppWatchKitExtension/ExtensionDelegate.swift

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,33 +32,33 @@ class ExtensionDelegate: NSObject, WKExtensionDelegate, MessagingDelegate {
3232
Messaging.messaging().delegate = self
3333
let remoteConfig = RemoteConfig.remoteConfig()
3434
remoteConfig.fetchAndActivate { _, error in
35-
guard error == nil else {
36-
print("error:" + error.debugDescription)
37-
return
38-
}
39-
let defaultOutput = "You have not set up a 'test' key in Remote Config console."
40-
let configValue: String =
41-
remoteConfig["test"].stringValue ?? defaultOutput
35+
guard error == nil else {
36+
print("error:" + error.debugDescription)
37+
return
38+
}
39+
let defaultOutput = "You have not set up a 'test' key in Remote Config console."
40+
let configValue: String =
41+
remoteConfig["test"].stringValue ?? defaultOutput
4242
print("value:\n" + configValue)
43+
}
4344
}
44-
}
4545

46-
/// MessagingDelegate
47-
func messaging(_: Messaging, didReceiveRegistrationToken fcmToken: String?) {
48-
print("token:\n" + fcmToken!)
49-
Messaging.messaging().subscribe(toTopic: "watch") { error in
50-
guard error == nil else {
51-
print("error:" + error.debugDescription)
52-
return
46+
/// MessagingDelegate
47+
func messaging(_: Messaging, didReceiveRegistrationToken fcmToken: String?) {
48+
print("token:\n" + fcmToken!)
49+
Messaging.messaging().subscribe(toTopic: "watch") { error in
50+
guard error == nil else {
51+
print("error:" + error.debugDescription)
52+
return
53+
}
54+
print("Successfully subscribed to topic")
5355
}
54-
print("Successfully subscribed to topic")
5556
}
56-
}
5757

58-
/// WKExtensionDelegate
59-
func didRegisterForRemoteNotifications(withDeviceToken deviceToken: Data) {
60-
/// Swizzling should be disabled in Messaging for watchOS, set APNS token manually.
61-
print("Set APNS Token\n")
62-
Messaging.messaging().apnsToken = deviceToken
58+
/// WKExtensionDelegate
59+
func didRegisterForRemoteNotifications(withDeviceToken deviceToken: Data) {
60+
/// Swizzling should be disabled in Messaging for watchOS, set APNS token manually.
61+
print("Set APNS Token\n")
62+
Messaging.messaging().apnsToken = deviceToken
6363
}
6464
}

0 commit comments

Comments
 (0)