We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b69ceac commit b585484Copy full SHA for b585484
packages/user_repository/lib/src/firebase_user_repository.dart
@@ -157,15 +157,11 @@ extension _FirebaseAuthExtensions on FirebaseAuth {
157
return;
158
}
159
160
- yield* firestore
161
- .userDoc(firebaseUser.uid)
162
- .snapshots()
163
- .map((snapshot) {
164
- if (snapshot.exists) {
165
- return User.fromJson(snapshot.data()!);
166
- }
167
- return User.none;
168
- });
+ yield* firestore.userDoc(firebaseUser.uid).snapshots().map(
+ (snapshot) => snapshot.exists
+ ? User.fromJson(snapshot.data()!)
+ : User.none,
+ );
169
},
170
)
171
.handleError((Object _) => throw UserFailure.fromAuthUserChanges())
0 commit comments