Skip to content

Commit

Permalink
style : 사용되지 않는 의존성 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
suhyun0918 committed Feb 16, 2024
1 parent d7c85a2 commit c2a1b3e
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ private List<MatchingResult> getPreviousMatchingResult(MatchingRound matchingRou
private List<Block> getBlockListByMatchingApplications(MatchingRound matchingRound) {
List<MatchingApplication> matchingApplications = getMatchingApplications(matchingRound);
List<Block> blockHistory = matchingApplications.stream()
.map(MatchingApplication::getMemberId)
.map(this::getMemberById)
.map(MatchingApplication::getMember)
.flatMap(member -> getBlockListByBlockingMember(member).stream())
.toList();
return blockHistory;
Expand All @@ -99,11 +98,6 @@ private List<Block> getBlockListByBlockingMember(Member blockingMember) {
return blockRepository.findAllByBlockingMember(blockingMember);
}

private Member getMemberById(Long memberId) {
return memberRepository.findById(memberId)
.orElseThrow(() -> new RestApiException(MemberError.NULL_MEMBER));
}

private MatchingOperateRequest createOperateRequest(MatchingRound matchingRound) {
List<MatchingApplication> matchingApplications = getMatchingApplications(matchingRound);
List<MatchingResult> previousMatchingResult = getPreviousMatchingResult(matchingRound);
Expand Down

0 comments on commit c2a1b3e

Please sign in to comment.