fix: add missing else block.

This commit is contained in:
Aunali321 2022-10-16 23:43:33 +05:30
parent f31a60d9bb
commit fbd4359d61

View file

@ -31,11 +31,12 @@ Future main() async {
options: DefaultFirebaseOptions.currentPlatform, options: DefaultFirebaseOptions.currentPlatform,
); );
Firebase.app().setAutomaticDataCollectionEnabled(true); Firebase.app().setAutomaticDataCollectionEnabled(true);
} } else {
await Firebase.initializeApp( await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform, options: DefaultFirebaseOptions.currentPlatform,
); );
Firebase.app().setAutomaticDataCollectionEnabled(false); Firebase.app().setAutomaticDataCollectionEnabled(false);
}
locator<GithubAPI>().initialize(); locator<GithubAPI>().initialize();
await locator<PatcherAPI>().initialize(); await locator<PatcherAPI>().initialize();
tz.initializeTimeZones(); tz.initializeTimeZones();