Skip to content

Commit

Permalink
review: Fix nullable _isOnBoarded.
Browse files Browse the repository at this point in the history
  • Loading branch information
wizlif committed Oct 10, 2022
1 parent 0685f13 commit 832ff2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/infrastructure/core/settings_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ class SettingsRepository implements ISettingsRepository, Disposable {

@override
Future<bool> getWasUserOnboarded() async {
if (_isOnBoarded != null) return _isOnBoarded ?? false;
if (_isOnBoarded != null) return _isOnBoarded!;
await _initCompleter.future;
_isOnBoarded = _prefs.getBool(_prefsKeyWasUserOnboarded) ?? false;
return _isOnBoarded ?? false;
return _isOnBoarded!;
}

@override
Expand Down

0 comments on commit 832ff2d

Please sign in to comment.