Skip to content

Commit a7350f9

Browse files
committed
PR feedback
1 parent 5ee39ba commit a7350f9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

data/core/src/commonMain/kotlin/com/tunjid/heron/data/repository/AuthRepository.kt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,7 @@ internal class AuthTokenRepository(
9494

9595
override val isGuest: Flow<Boolean> =
9696
savedStateDataSource.savedState.map { savedState ->
97-
when (savedState.auth) {
98-
is SavedState.AuthTokens.Guest -> true
99-
is SavedState.AuthTokens.Authenticated,
100-
is SavedState.AuthTokens.Pending.DPoP,
101-
null,
102-
-> false
103-
}
97+
savedState.auth is SavedState.AuthTokens.Guest
10498
}
10599
.distinctUntilChanged()
106100

0 commit comments

Comments
 (0)