Skip to content

Commit

Permalink
fix(#199) : 조건문 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yeon015 committed Aug 31, 2024
1 parent bcb9c5e commit 481bacc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/umc/th/juinjang/controller/OAuthController.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class OAuthController {
@PostMapping("/kakao/login")
public ApiResponse<LoginResponseDto> kakaoLogin(@RequestHeader("target-id") String kakaoTargetId, @RequestBody @Validated KakaoLoginRequestDto kakaoReqDto) {
Long targetId;
if(kakaoTargetId.isEmpty()) {
if(kakaoTargetId == null) {
throw new ExceptionHandler(EMPTY_TARGET_ID);
}

Expand All @@ -60,7 +60,7 @@ public ApiResponse<LoginResponseDto> kakaoLogin(@RequestHeader("target-id") Stri
@PostMapping("/kakao/signup")
public ApiResponse<LoginResponseDto> kakaoSignUp(@RequestHeader("target-id") String kakaoTargetId, @RequestBody @Validated KakaoSignUpRequestDto kakaoSignUpReqDto) {
Long targetId;
if(kakaoTargetId.isEmpty()) {
if(kakaoTargetId == null) {
throw new ExceptionHandler(EMPTY_TARGET_ID);
}

Expand Down

0 comments on commit 481bacc

Please sign in to comment.