Skip to content

Commit

Permalink
refactor(RecruitmentDetailViewModel): 불필요한 줄바꿈 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
ki960213 committed Dec 13, 2023
1 parent b90db25 commit 40120b4
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ class RecruitmentDetailViewModel @Inject constructor(
fun deleteRecruitment(): Job = command(
command = { recruitmentRepository.deleteRecruitment(eventId, recruitmentId) },
onSuccess = { _uiEvent.value = RecruitmentPostDetailUiEvent.PostDeleteComplete },
onFailure = { _, _ ->
_uiEvent.value = RecruitmentPostDetailUiEvent.PostDeleteFail
},
onFailure = { _, _ -> _uiEvent.value = RecruitmentPostDetailUiEvent.PostDeleteFail },
)

fun reportRecruitment(): Job = command(
Expand Down Expand Up @@ -98,9 +96,7 @@ class RecruitmentDetailViewModel @Inject constructor(
otherId = _recruitment.value.recruitment.writer.id,
)
},
onFailure = { _, _ ->
_uiEvent.value = RecruitmentPostDetailUiEvent.MessageSendFail
},
onFailure = { _, _ -> _uiEvent.value = RecruitmentPostDetailUiEvent.MessageSendFail },
onStart = { _canSendMessage.value = false },
onFinish = { _canSendMessage.value = true },
)
Expand Down

0 comments on commit 40120b4

Please sign in to comment.