Skip to content

Commit

Permalink
[JE] remove redundant year check for Liberation Day
Browse files Browse the repository at this point in the history
Co-authored-by: ~Jhellico <[email protected]>
  • Loading branch information
PPsyrius and KJhellico authored Jan 29, 2024
1 parent 882b579 commit 1c178cb
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions holidays/countries/jersey.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,12 @@ def _populate_public_holidays(self) -> None:
# Counts as Public Holiday when fall on the weekdays, also on Saturday from 2010 onwards.
# Specially held in 2010 on Sunday for the 65th Anniversary.

if self._year >= 1952:
# Liberation Day
liberation_day = self._add_holiday_may_9("Liberation Day")
if (self._is_sunday(liberation_day) and self._year != 2010) or (
self._is_saturday(liberation_day) and self._year <= 2010
):
self.pop(liberation_day)
# Liberation Day
liberation_day = self._add_holiday_may_9("Liberation Day")
if (self._is_sunday(liberation_day) and self._year != 2010) or (
self._is_saturday(liberation_day) and self._year <= 2010
):
self.pop(liberation_day)


class JE(Jersey):
Expand Down

0 comments on commit 1c178cb

Please sign in to comment.