Skip to content

Commit

Permalink
[refactor] 상수 변수 명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hysong4u committed Jan 12, 2024
1 parent c2c97c1 commit 65d2733
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public class GiftService {
private final RoomRepository roomRepository;
private final RoomMemberRepository roomMemberRepository;
private static final int MAX_GIFT_COUNT = 2;
private static final int FirstPlaceScore = 10;
private static final int SecondPlaceScore = 5;
private static final int FIRST_PLACE_SCORE = 10;
private static final int SECOND_PLACE_SCORE= 5;

public void createNewGift(Long memberId, CreateGiftRequestDto createGiftRequestDto) {
Member member = findMemberByIdOrThrow(memberId);
Expand Down Expand Up @@ -155,8 +155,8 @@ private List<TournamentListsResponseDto> mapGiftsToTournamentLists(List<Gift> gi

public void evaluateTournamentScore(TournamentScoreRequestDto tournamentScoreRequestDto) {

Gift firstPlaceGift = updateScore(tournamentScoreRequestDto.firstPlaceGiftId(), FirstPlaceScore);
Gift secondPlaceGift = updateScore(tournamentScoreRequestDto.secondPlaceGiftId(), SecondPlaceScore);
Gift firstPlaceGift = updateScore(tournamentScoreRequestDto.firstPlaceGiftId(), FIRST_PLACE_SCORE);
Gift secondPlaceGift = updateScore(tournamentScoreRequestDto.secondPlaceGiftId(), SECOND_PLACE_SCORE);

giftRepository.save(firstPlaceGift);
giftRepository.save(secondPlaceGift);
Expand Down

0 comments on commit 65d2733

Please sign in to comment.