Skip to content

Commit

Permalink
refactor: 6시 이후 시간도 보이게 다시 수정 (#1115)
Browse files Browse the repository at this point in the history
Co-authored-by: daheePark <[email protected]>
  • Loading branch information
daheeParkk and daheePark authored Dec 4, 2024
1 parent a7ef565 commit b8537f0
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,6 @@ public record InnerTimetableResponse(

public static List<InnerTimetableResponse> from(List<TimetableLecture> timetableLectures) {
return timetableLectures.stream()
.filter(timeTableLecture -> {
if (timeTableLecture.getLecture() == null) {
List<Integer> classTimes = parseIntegerClassTimesFromString(timeTableLecture.getClassTime());
return classTimes.stream().allMatch(InnerTimetableResponse::isValidClassTime);
}
return true;
})
.map(timeTableLecture -> {
if (timeTableLecture.getLecture() == null) {
return new InnerTimetableResponse(
Expand Down Expand Up @@ -117,10 +110,6 @@ public static List<InnerTimetableResponse> from(List<TimetableLecture> timetable
})
.toList();
}

private static boolean isValidClassTime(int classTime) {
return classTime < 19 || classTime % 100 < 19;
}
}

public static TimetableResponse of(List<TimetableLecture> timetableLectures, TimetableFrame timetableFrame,
Expand Down

0 comments on commit b8537f0

Please sign in to comment.