Skip to content

Commit

Permalink
fix: 같은 날짜도 가능하게 하기
Browse files Browse the repository at this point in the history
  • Loading branch information
Sehee-Lee-01 committed Mar 21, 2024
1 parent cd22628 commit c43c0d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static void validateDuration(YearMonth startDate, YearMonth endDate) {
}

if (Objects.nonNull(startDate) && Objects.nonNull(endDate)) {
if (startDate.compareTo(endDate) >= 0) {
if (startDate.compareTo(endDate) > 0) {
throw new IllegalArgumentException(DURATION_IS_REVERSED);
}
return;
Expand Down

0 comments on commit c43c0d2

Please sign in to comment.