Skip to content

Commit

Permalink
chore: isCompleted 로 메서드 명 개선
Browse files Browse the repository at this point in the history
  • Loading branch information
kckc0608 committed Nov 1, 2024
1 parent 1fb9722 commit 8e79492
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public StudyStatisticsResponse getStudyStatistics(Long studyId) {

long totalStudentCount = studyHistories.size();
long studyCompletedStudentCount =
studyHistories.stream().filter(StudyHistory::isComplete).count();
studyHistories.stream().filter(StudyHistory::isCompleted).count();

List<StudyWeekStatisticsResponse> studyWeekStatisticsResponses = studyDetails.stream()
.map((studyDetail -> calculateWeekStatistics(studyDetail, totalStudentCount)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public boolean isWithinApplicationAndCourse() {
return study.isWithinApplicationAndCourse();
}

public boolean isComplete() {
public boolean isCompleted() {
return studyHistoryStatus == COMPLETED;
}
}

0 comments on commit 8e79492

Please sign in to comment.