Skip to content

Commit

Permalink
fix ios example app test (#1963)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia authored Nov 28, 2023
1 parent 9112c50 commit 06a5041
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/patrol/example/lib/cubit/auth_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class AuthCubit extends Cubit<AuthState> {

final FirebaseAuth? _firebaseAuth;
final GoogleSignIn? _googleSignIn;
late final StreamSubscription<User?> _authStateChangesSubscription;
StreamSubscription<User?>? _authStateChangesSubscription;

void init() {
if (_firebaseAuth == null || _googleSignIn == null) {
Expand Down Expand Up @@ -67,7 +67,7 @@ class AuthCubit extends Cubit<AuthState> {

@override
Future<void> close() {
_authStateChangesSubscription.cancel();
_authStateChangesSubscription?.cancel();
return super.close();
}
}
Expand Down

0 comments on commit 06a5041

Please sign in to comment.