Skip to content

Commit

Permalink
refactor:TOP-83 코드 스타일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
cwj-c committed Sep 18, 2023
1 parent 3d5bc95 commit 192a39a
Showing 1 changed file with 9 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,25 +103,21 @@ class LocationViewModel @Inject constructor(
_sideEffectFlow.emit(LocationSideEffect.NavigateNextView)
}.onFailure {
_sideEffectFlow.emit(
when (it) {
is SignupException.InvalidateLocationInfo -> {
LocationSideEffect.ShowToast(
LocationSideEffect.ShowToast(
when (it) {
is SignupException.InvalidateLocationInfo -> {
stringProvider.getString(StringProvider.ResId.InvalidateLocation)
)
}
}

is SignupException.SignupUserInvalidateException -> {
LocationSideEffect.ShowToast(
is SignupException.SignupUserInvalidateException -> {
stringProvider.getString(StringProvider.ResId.SignupUserInvalidate) + " $it"
)
}
}

else -> {
LocationSideEffect.ShowToast(
else -> {
stringProvider.getString(StringProvider.ResId.LocationPatchFail) + " $it"
)
}
}
}
)
)
}
_dataLoading.value = false
Expand Down

0 comments on commit 192a39a

Please sign in to comment.