From 74baee9f799d330bb2f95ebaa883c6831df0744b Mon Sep 17 00:00:00 2001 From: Tino Hager Date: Sun, 24 Mar 2024 21:28:09 +0100 Subject: [PATCH] optimizeCode --- src/Nager.Date/HolidayProviders/AustraliaHolidayProvider.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Nager.Date/HolidayProviders/AustraliaHolidayProvider.cs b/src/Nager.Date/HolidayProviders/AustraliaHolidayProvider.cs index e7a105aa..eb38b9df 100644 --- a/src/Nager.Date/HolidayProviders/AustraliaHolidayProvider.cs +++ b/src/Nager.Date/HolidayProviders/AustraliaHolidayProvider.cs @@ -225,7 +225,7 @@ protected override IEnumerable 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 { @@ -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)