Skip to content

Commit

Permalink
[BE] refactor: 불필요한 메서드 분리 제거 (#479) (#481)
Browse files Browse the repository at this point in the history
* refactor: 불필요한 메서드 분리 제거

* refactor: 개행 수정
  • Loading branch information
xxeol2 authored and BGuga committed Oct 17, 2023
1 parent ed2d792 commit d566922
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,8 @@ public AuthService(MemberRepository memberRepository) {
}

public LoginMemberDto login(UserInfo userInfo) {
LoginMemberDto loginMemberDto = handleLoginRequest(userInfo);
return loginMemberDto;
}

public LoginMemberDto handleLoginRequest(UserInfo userInfo) {
Optional<Member> originMember = memberRepository.findBySocialIdAndSocialType(userInfo.socialId(), userInfo.socialType());
Optional<Member> originMember =
memberRepository.findBySocialIdAndSocialType(userInfo.socialId(), userInfo.socialType());
if (originMember.isPresent()) {
Member member = originMember.get();
return LoginMemberDto.isExists(member);
Expand Down

0 comments on commit d566922

Please sign in to comment.