Skip to content

Commit eebeb20

Browse files
committed
fix the optional error with the optional binding
1 parent d06f701 commit eebeb20

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

samples/swift/uidemo/AppDelegate.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3535
}
3636

3737
func application(app: UIApplication, openURL url: NSURL, options: [String : AnyObject]) -> Bool {
38-
let sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey] as! String?
39-
if FIRAuthUI.authUI()?.handleOpenURL(url, sourceApplication: sourceApplication) ?? false {
40-
return true
38+
if let sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey] as! String? {
39+
if FIRAuthUI.authUI()?.handleOpenURL(url, sourceApplication: sourceApplication) ?? false {
40+
return true
41+
}
4142
}
4243
// other URL handling goes here.
4344
return false

0 commit comments

Comments
 (0)