Skip to content

Commit

Permalink
[REFACTOR] #15 : SignInUseCase 로직 수정 - Result.fold 활용으로 성공 케이스 로직 구현 …
Browse files Browse the repository at this point in the history
…및 실패 케이스 에러 던지는 로직 추가
  • Loading branch information
jeongjaino committed Oct 11, 2023
1 parent 9d05983 commit b804737
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SignInUseCase @Inject constructor(
userRepository.getUserProfile(userId)
.fold(
onFailure = { exception ->
//
// 사용자를 조회할 수 없는 예외인 경우
val userNotFoundException = IllegalStateException()
if (exception == userNotFoundException) {
SIGN_UP
Expand Down

0 comments on commit b804737

Please sign in to comment.