Skip to content

Commit

Permalink
refactor: (#32) final 키워드 붙이기
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdtls690 committed Jul 18, 2023
1 parent 33704f8 commit a6231a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void vote(

private void validateAlreadyVoted(Member member, Post post) {
final PostOptions postOptions = post.getPostOptions();
List<Vote> alreadyVoted = voteRepository.findByMemberAndPostOptionIn(member, postOptions.getPostOptions());
final List<Vote> alreadyVoted = voteRepository.findByMemberAndPostOptionIn(member, postOptions.getPostOptions());
if (!alreadyVoted.isEmpty()) {
throw new IllegalStateException("해당 게시물에는 이미 투표하였습니다.");
}
Expand Down

0 comments on commit a6231a1

Please sign in to comment.