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 Oct 5, 2023
1 parent 72964cd commit 8c6e756
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 8c6e756

Please sign in to comment.