Skip to content

Commit

Permalink
refactor(#132): 사용되지 않는 import문 삭제, 의미에 맞지 않는 변수명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
cabbage16 committed Sep 25, 2024
1 parent 5a8afd9 commit 4f59a91
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ public void execute() {
}

formRepository.flush();
List<Form> regularOrSupernumeraryFormList = formRepository.findReceivedRegularForm();
List<Form> regularFormList = formRepository.findReceivedRegularForm();

for (Form form : regularOrSupernumeraryFormList) {
for (Form form : regularFormList) {
if (regularCount > 0) {
form.firstPass();
regularCount--;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.bamdoliro.maru.domain.form.exception.FormAlreadySubmittedException;
import com.bamdoliro.maru.domain.form.service.FormFacade;
import com.bamdoliro.maru.domain.user.domain.User;
import com.bamdoliro.maru.infrastructure.s3.FileService;
import com.bamdoliro.maru.shared.annotation.UseCase;
import lombok.RequiredArgsConstructor;
import org.springframework.transaction.annotation.Transactional;
Expand All @@ -14,7 +13,6 @@
public class SubmitFinalFormUseCase {

private final FormFacade formFacade;
private final FileService fileService;

@Transactional
public void execute(User user) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,14 @@
import com.bamdoliro.maru.domain.form.domain.type.Certificate;
import jakarta.persistence.AttributeOverride;
import jakarta.persistence.AttributeOverrides;
import jakarta.persistence.CollectionTable;
import jakarta.persistence.Column;
import jakarta.persistence.ElementCollection;
import jakarta.persistence.Embeddable;
import jakarta.persistence.Embedded;
import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import jakarta.persistence.FetchType;
import jakarta.persistence.JoinColumn;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Objects;
import java.util.Optional;

@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
Expand Down

0 comments on commit 4f59a91

Please sign in to comment.