diff options
| author | cvium <clausvium@gmail.com> | 2021-04-30 15:09:36 +0200 |
|---|---|---|
| committer | cvium <clausvium@gmail.com> | 2021-04-30 15:09:36 +0200 |
| commit | 608cba817c54df60959079719bafca4d7d54269a (patch) | |
| tree | db024902a82c5ec64ffc88c0827d4f891cf45983 /Emby.Server.Implementations/Localization/LocalizationManager.cs | |
| parent | eeb5d4bd1e63ad89f599fd52a79b3c80ed8f8ad1 (diff) | |
Reduce some allocations with the magic of spans etc.
Diffstat (limited to 'Emby.Server.Implementations/Localization/LocalizationManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Localization/LocalizationManager.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Localization/LocalizationManager.cs b/Emby.Server.Implementations/Localization/LocalizationManager.cs index 2fdc2b4d9..46858b4fb 100644 --- a/Emby.Server.Implementations/Localization/LocalizationManager.cs +++ b/Emby.Server.Implementations/Localization/LocalizationManager.cs @@ -315,10 +315,9 @@ namespace Emby.Server.Implementations.Localization } const string Prefix = "Core"; - var key = Prefix + culture; return _dictionaries.GetOrAdd( - key, + culture, f => GetDictionary(Prefix, culture, DefaultCulture + ".json").GetAwaiter().GetResult()); } |
