mirror of
https://github.com/mdanics/fluttergram.git
synced 2025-08-06 13:19:53 +08:00
Remove unnecessary await
There is no need to use await when setting timestamps in snapshots.
This commit is contained in:

committed by
GitHub

parent
fb38550d03
commit
ee00b7f1b2
@ -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());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user