Skip to content

Commit 724081f

Browse files
committed
refactor: validation methods refactoring
1 parent 4dba34f commit 724081f

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

src/main/java/ceos/backend/domain/application/domain/Application.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,6 @@ public static Application of(
7878
.build();
7979
}
8080

81-
public boolean isInterviewChecked() {
82-
return interviewCheck != AvailableCheck.UNDECIDED;
83-
}
84-
85-
public boolean isFinalChecked() {
86-
return finalCheck != AvailableCheck.UNDECIDED;
87-
}
88-
8981
public void addApplicationAnswerList(List<ApplicationAnswer> applicationAnswers) {
9082
this.applicationAnswers = applicationAnswers;
9183
}
@@ -135,13 +127,13 @@ public void validateFinalPass() {
135127
}
136128

137129
public void validateNotFinalCheck() {
138-
if (this.isFinalChecked()) {
130+
if (this.finalCheck != AvailableCheck.UNDECIDED) {
139131
throw AlreadyCheckFinal.EXCEPTION;
140132
}
141133
}
142134

143135
public void validateNotInterviewCheck() {
144-
if (this.isInterviewChecked()) {
136+
if (this.interviewCheck != AvailableCheck.UNDECIDED) {
145137
throw AlreadyCheckInterview.EXCEPTION;
146138
}
147139
}

0 commit comments

Comments
 (0)