Skip to content

Commit

Permalink
Use '==' instead of 'in' and single-element arrays
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
  • Loading branch information
lauft committed Nov 10, 2023
1 parent 4ac8bd5 commit e4b5782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/holidata/holidays/es-ES.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def holiday_san_jose(self):
regions = ["MC", "ML", "NC", "VC"]
elif self.year == 2015:
regions = ["MC", "MD", "ML", "NC", "PV", "VC"]
elif self.year in [2016]:
elif self.year == 2016:
regions = ["MC", "ML", "VC"]
elif self.year == 2018:
regions = ["MC", "VC"]
Expand Down Expand Up @@ -216,7 +216,7 @@ def holiday_dia_siguente_a_san_jose(self):
return []

def holiday_lunes_siguiente_a_san_jose(self):
if self.year in [2017]:
if self.year == 2017:
regions = ["EX", "MD"]
elif self.year == 2023:
regions = ["MD"]
Expand Down

0 comments on commit e4b5782

Please sign in to comment.