diff options
author | Xiangtian Dai <xiangtian@google.com> | 2017-10-19 08:58:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-19 08:58:36 -0700 |
commit | a9585971c35799b06501fe5bba1cf584d000d27b (patch) | |
tree | c9baa39d180d72ee1095b638d0cab0ca8550b290 /Example/Auth | |
parent | 024788e38a5e506cf4861aa66afda2bc3b9115e1 (diff) |
Silences unguarded availability warnings in Auth. (#389)
Also fixes a crash in the Auth sample app in an error case.
This addresses *Auth* part of #385 .
Diffstat (limited to 'Example/Auth')
-rw-r--r-- | Example/Auth/Sample/MainViewController.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Example/Auth/Sample/MainViewController.m b/Example/Auth/Sample/MainViewController.m index e885e5a..5e739b7 100644 --- a/Example/Auth/Sample/MainViewController.m +++ b/Example/Auth/Sample/MainViewController.m @@ -2537,7 +2537,9 @@ static NSDictionary<NSString *, NSString *> *parseURL(NSString *urlString) { if (error) { [self logFailure:@"failed to send verification code" error:error]; [self showMessagePrompt:error.localizedDescription]; - completion(error); + if (completion) { + completion(error); + } return; } [self logSuccess:@"Code sent"]; |