Skip to content

Commit d1d2df3

Browse files
author
github-actions
committed
chore: Java 스타일 수정
1 parent fd7fe2b commit d1d2df3

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

backend/src/main/java/io/f1/backend/domain/stat/dao/StatRepositoryAdapter.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ public MyPageInfo getMyPageByUserId(long userId) {
116116
}
117117

118118
private StatWithNicknameAndUserId findStatByUserId(long userId) {
119-
return jpaRepository.findByUserId(userId)
120-
.orElseThrow(() -> new CustomException(UserErrorCode.USER_NOT_FOUND));
119+
return jpaRepository
120+
.findByUserId(userId)
121+
.orElseThrow(() -> new CustomException(UserErrorCode.USER_NOT_FOUND));
121122
}
122123
}

backend/src/main/java/io/f1/backend/domain/user/api/UserController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ public ResponseEntity<Void> updateNickname(
4646
}
4747

4848
@GetMapping
49-
public ResponseEntity<MyPageInfo> getMyPage(@AuthenticationPrincipal UserPrincipal userPrincipal) {
49+
public ResponseEntity<MyPageInfo> getMyPage(
50+
@AuthenticationPrincipal UserPrincipal userPrincipal) {
5051
MyPageInfo response = userService.getMyPage(userPrincipal);
5152
return ResponseEntity.ok(response);
5253
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
package io.f1.backend.domain.user.dto;
22

3-
public record MyPageInfo(String nickname, long rank, long score, long totalGames, long winningGames) {}
3+
public record MyPageInfo(
4+
String nickname, long rank, long score, long totalGames, long winningGames) {}

0 commit comments

Comments
 (0)