Skip to content

Commit

Permalink
optimizeCode
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager committed Mar 24, 2024
1 parent bf912dd commit 74baee9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/AustraliaHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ protected override IEnumerable<HolidaySpecification> GetHolidaySpecifications(in

private HolidaySpecification EasterSunday(int year)
{
var holidaySpecification = this._catholicProvider.EasterSunday("Easter Sunday", year);
var easterSunday = this._catholicProvider.EasterSunday("Easter Sunday", year);

string[] subdivisionCodes = year switch
{
Expand All @@ -238,8 +238,8 @@ private HolidaySpecification EasterSunday(int year)
>= 2024 => ["AU-ACT", "AU-NSW", "AU-NT", "AU-QLD", "AU-SA", "AU-VIC", "AU-WA"]
};

holidaySpecification.SubdivisionCodes = subdivisionCodes;
return holidaySpecification;
easterSunday.SubdivisionCodes = subdivisionCodes;
return easterSunday;
}

private HolidaySpecification[] LabourDay(int year)
Expand Down

0 comments on commit 74baee9

Please sign in to comment.