Skip to content

Commit

Permalink
Avoid closure in delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
jnyrup committed May 1, 2022
1 parent aac7e96 commit 9bb320a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TimeZoneNames/TZNames.cs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ private static IComparer<string> GetComparer(string langKey)
{
return Comparers.GetOrAdd(langKey, key =>
{
var culture = new CultureInfo(langKey.Replace('_', '-'));
var culture = new CultureInfo(key.Replace('_', '-'));
return StringComparer.Create(culture, true);
});
}
Expand Down

0 comments on commit 9bb320a

Please sign in to comment.