Skip to content

Commit fdaaee7

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

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import static io.f1.backend.domain.game.mapper.RoomMapper.toQuestionStartResponse;
66
import static io.f1.backend.domain.quiz.mapper.QuizMapper.toGameStartResponse;
77

8-
import io.f1.backend.domain.game.dto.request.GameSettingChanger;
98
import io.f1.backend.domain.game.dto.MessageType;
9+
import io.f1.backend.domain.game.dto.request.GameSettingChanger;
1010
import io.f1.backend.domain.game.event.RoomUpdatedEvent;
1111
import io.f1.backend.domain.game.model.Player;
1212
import io.f1.backend.domain.game.model.Room;
@@ -98,8 +98,10 @@ public void changeGameSetting(
9898

9999
broadcastGameSetting(room);
100100

101-
RoomUpdatedEvent roomUpdatedEvent = new RoomUpdatedEvent(room,
102-
quizService.getQuizWithQuestionsById(room.getGameSetting().getQuizId()));
101+
RoomUpdatedEvent roomUpdatedEvent =
102+
new RoomUpdatedEvent(
103+
room,
104+
quizService.getQuizWithQuestionsById(room.getGameSetting().getQuizId()));
103105

104106
eventPublisher.publishEvent(roomUpdatedEvent);
105107
}
@@ -157,8 +159,8 @@ private void broadcastGameSetting(Room room) {
157159
String destination = getDestination(room.getId());
158160
Quiz quiz = quizService.getQuizWithQuestionsById(room.getGameSetting().getQuizId());
159161
messageSender.send(
160-
destination,
161-
MessageType.GAME_SETTING,
162-
toGameSettingResponse(room.getGameSetting(), quiz));
162+
destination,
163+
MessageType.GAME_SETTING,
164+
toGameSettingResponse(room.getGameSetting(), quiz));
163165
}
164166
}

backend/src/main/java/io/f1/backend/domain/game/dto/request/QuizChangeRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package io.f1.backend.domain.game.dto.request;
22

3+
import static io.f1.backend.domain.game.mapper.RoomMapper.toPlayerListResponse;
4+
35
import io.f1.backend.domain.game.dto.MessageType;
46
import io.f1.backend.domain.game.dto.response.PlayerListResponse;
57
import io.f1.backend.domain.game.model.Room;
@@ -9,8 +11,6 @@
911

1012
import java.util.Objects;
1113

12-
import static io.f1.backend.domain.game.mapper.RoomMapper.toPlayerListResponse;
13-
1414
public record QuizChangeRequest(Long quizId) implements GameSettingChanger {
1515

1616
@Override

0 commit comments

Comments
 (0)