Skip to content

Commit

Permalink
fix: 에러 전환을 하지 않도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
GiHoo committed Nov 5, 2024
1 parent ae33b19 commit 57f117a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ public Member findByUuid(String uuid) {

@Override
public Optional<Member> findByEmail(String email) {
return Optional.ofNullable(memberRepository.findByEmail(new EmailVo(email))
.orElseThrow(() -> MemberExistsException.of(MemberErrorCode.MEMBER_IS_NOT_EXIST)));
return memberRepository.findByEmail(new EmailVo(email));
}

@Override
Expand Down

0 comments on commit 57f117a

Please sign in to comment.