Skip to content

Commit

Permalink
Merge branch 'main' into dengdan-stress-test
Browse files Browse the repository at this point in the history
  • Loading branch information
dengdan154 committed Dec 2, 2022
2 parents 40e1144 + c15e059 commit 02f873a
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ internal sealed class CredentialStoreState : State {
val action = credentialStoreActions.loadCredentialStoreAction(storeEvent.credentialType)
StateResolution(LoadingStoredCredentials(), listOf(action))
}
is CredentialStoreEvent.EventType.ThrowError -> StateResolution(Error(storeEvent.error))
is CredentialStoreEvent.EventType.ThrowError -> {
val action = credentialStoreActions.moveToIdleStateAction()
StateResolution(Error(storeEvent.error), listOf(action))
}
else -> defaultResolution
}
is LoadingStoredCredentials, is StoringCredentials, is ClearingCredentials -> when (storeEvent) {
Expand Down Expand Up @@ -96,8 +99,7 @@ internal sealed class CredentialStoreState : State {
}
is Success, is Error -> when (storeEvent) {
is CredentialStoreEvent.EventType.MoveToIdleState -> {
val action = credentialStoreActions.moveToIdleStateAction()
StateResolution(Idle(), listOf(action))
StateResolution(Idle(), listOf())
}
else -> StateResolution(oldState)
}
Expand Down

0 comments on commit 02f873a

Please sign in to comment.