Skip to content

Commit 0df1454

Browse files
github-actionsdlsrks1021
authored andcommitted
chore: Java 스타일 수정
1 parent 3e439f9 commit 0df1454

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

backend/src/main/java/io/f1/backend/domain/game/app/GameService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ public void gameEnd(Room room) {
175175

176176
Map<Long, Player> playerMap = room.getPlayerMap();
177177

178-
// TODO : 랭킹 정보 업데이트
179178
GameResultListResponse gameResultListResponse = toGameResultListResponse(playerMap,
180179
room.getGameSetting().getRound());
181180

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
package io.f1.backend.domain.game.dto.response;
22

3-
public record GameResultResponse(Long id, String nickname, int score, int totalCorrectCount, int rank) {}
3+
public record GameResultResponse(
4+
Long id, String nickname, int score, int totalCorrectCount, int rank) {}

backend/src/main/java/io/f1/backend/domain/game/mapper/RoomMapper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ public static GameResultResponse toGameResultResponse(
121121
double correctRate = (double) player.getCorrectCount() / round;
122122
int score = (int) (correctRate * 100) + (totalPlayers - rank) * 5;
123123

124-
return new GameResultResponse(player.id, player.nickname, score, player.getCorrectCount(), rank);
124+
return new GameResultResponse(
125+
player.id, player.nickname, score, player.getCorrectCount(), rank);
125126
}
126127

127128
public static GameResultListResponse toGameResultListResponse(

0 commit comments

Comments
 (0)