From 8c6e756ea83cf87613f21ab9a69797b3119c7f36 Mon Sep 17 00:00:00 2001 From: xxeol2 Date: Thu, 5 Oct 2023 10:23:14 +0900 Subject: [PATCH] =?UTF-8?q?[BE]=20refactor:=20=EB=B6=88=ED=95=84=EC=9A=94?= =?UTF-8?q?=ED=95=9C=20=EB=A9=94=EC=84=9C=EB=93=9C=20=EB=B6=84=EB=A6=AC=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0=20(#479)=20(#481)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor: 불필요한 메서드 분리 제거 * refactor: 개행 수정 --- .../java/com/festago/auth/application/AuthService.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/backend/src/main/java/com/festago/auth/application/AuthService.java b/backend/src/main/java/com/festago/auth/application/AuthService.java index 63101e914..c8150637f 100644 --- a/backend/src/main/java/com/festago/auth/application/AuthService.java +++ b/backend/src/main/java/com/festago/auth/application/AuthService.java @@ -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 originMember = memberRepository.findBySocialIdAndSocialType(userInfo.socialId(), userInfo.socialType()); + Optional originMember = + memberRepository.findBySocialIdAndSocialType(userInfo.socialId(), userInfo.socialType()); if (originMember.isPresent()) { Member member = originMember.get(); return LoginMemberDto.isExists(member);