Remove unnecessary await

There is no need to use await when setting timestamps in snapshots.
This commit is contained in:
Gustavo Contreiras
2019-04-19 09:39:38 -03:00
committed by GitHub
parent fb38550d03
commit ee00b7f1b2

View File

@ -22,7 +22,10 @@ final FirebaseMessaging _firebaseMessaging = FirebaseMessaging();
User currentUserModel;
Future<void> main() async {
await Firestore.instance.settings(timestampsInSnapshotsEnabled: true);
Firestore.instance.settings(timestampsInSnapshotsEnabled: true).then((_) {
print('[Main] Firestore timestamps in snapshots set');},
onError: (_) => print('[Main] Error setting timestamps in snapshots')
);
runApp(new Fluttergram());
}