Skip to content

Commit

Permalink
refactor(DefaultRecruitmentRepository): DefaultRecruitmentRepository에…
Browse files Browse the repository at this point in the history
…서 불필요한 코드 제거

- 특정 회원이 작성한 함께해요 글 조회 메서드에서 withContext 제거
  • Loading branch information
ki960213 committed Nov 30, 2023
1 parent 771a40c commit af0bcb5
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ class DefaultRecruitmentRepository @Inject constructor(

override suspend fun getMemberRecruitments(
memberId: Long,
): ApiResponse<List<Recruitment>> = withContext(Dispatchers.IO) {
recruitmentService.getMemberRecruitments(memberId)
.map { it.toData() }
}
): ApiResponse<List<Recruitment>> = recruitmentService
.getMemberRecruitments(memberId)
.map { it.toData() }

override suspend fun postRecruitment(
eventId: Long,
Expand Down

0 comments on commit af0bcb5

Please sign in to comment.