Skip to content

Commit fe24c52

Browse files
authored
Merge pull request #105 from dakeshi/fix_optional_error
fix the optional error with the optional binding
2 parents 1a2ca94 + a5197f6 commit fe24c52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/swift/uidemo/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3636

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

0 commit comments

Comments
 (0)