Browse Source

fix: remove unnecessary duplicate key checks

pull/765/head
cKey 3 years ago
parent
commit
1dcf129793
  1. 1
      aspnet-core/modules/lt/LINGYUN.Abp.LocalizationManagement.Domain/LINGYUN/Abp/LocalizationManagement/StaticLocalizationSaver.cs

1
aspnet-core/modules/lt/LINGYUN.Abp.LocalizationManagement.Domain/LINGYUN/Abp/LocalizationManagement/StaticLocalizationSaver.cs

@ -97,7 +97,6 @@ public class StaticLocalizationSaver : IStaticLocalizationSaver, ITransientDepen
fillTexts.Values.Select(x => x.Name));
var notExistsKeys = fillTexts.Values.Where(x => !existsKeys.Contains(x.Name));
notExistsKeys = notExistsKeys.Where(x => !insertNewTexts.Any(t => t.Key == x.Name));
foreach (var notExistsKey in notExistsKeys)
{

Loading…
Cancel
Save