Skip to content

Commit 4c7840a

Browse files
committed
docs(app, ios): remove nil check prior to configure
It appears that checking `[FIRApp defaultApp] == nil` will log an error message, and I'm not sure how it could ever be called twice (which would throw an exception instead)? Conforms with upstream documentation https://firebase.google.com/docs/ios/setup#objective-c Fixes #5739
1 parent 47d2265 commit 4c7840a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/index.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ Within your existing `didFinishLaunchingWithOptions` method, add the following t
112112
```
113113
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
114114
// Add me --- \/
115-
if ([FIRApp defaultApp] == nil) {
116-
[FIRApp configure];
117-
}
115+
[FIRApp configure];
118116
// Add me --- /\
119117
// ...
120118
}

0 commit comments

Comments
 (0)