Skip to content

Commit

Permalink
Remove the invalid assert (#77462)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekgh authored Oct 26, 2022
1 parent 7b5ab35 commit a8ea8e6
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,6 @@ private static int NlsGetCalendars(string localeName, bool useUserOverride, Cale
// Get native two digit year max
internal static int GetTwoDigitYearMax(CalendarId calendarId)
{
Debug.Assert(GlobalizationMode.UseNls);

return GlobalizationMode.Invariant ? Invariant.iTwoDigitYearMax :
CallGetCalendarInfoEx(null, calendarId, CAL_ITWODIGITYEARMAX, out int twoDigitYearMax) ?
twoDigitYearMax :
Expand Down

0 comments on commit a8ea8e6

Please sign in to comment.