Skip to content

Commit

Permalink
refactor: isValidClassTime()의 if문 개선
Browse files Browse the repository at this point in the history
  • Loading branch information
daheePark committed Dec 3, 2024
1 parent bf787e3 commit d35af97
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,7 @@ public static List<InnerTimetableResponse> from(List<TimetableLecture> timetable
}

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

Expand Down

0 comments on commit d35af97

Please sign in to comment.