Skip to content

Commit

Permalink
style: final -> end
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Jun 30, 2023
1 parent ac7a149 commit c9489b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ case class GachaEvent(eventName: GachaEventName, startDate: LocalDate, endDate:
def isHolding: Boolean = {
val now = LocalDate.now()
val isAfterStartDateOrFirstDay = now.equals(startDate) || now.isAfter(startDate)
val isBeforeEndDateOrFinalDay = now.equals(endDate) || now.isBefore(endDate)
val isBeforeEndDateOrEndDay = now.equals(endDate) || now.isBefore(endDate)

isAfterStartDateOrFirstDay && isBeforeEndDateOrFinalDay
isAfterStartDateOrFirstDay && isBeforeEndDateOrEndDay
}

}

0 comments on commit c9489b3

Please sign in to comment.