Minor fixes with personKeyToPersonContainer

This commit is contained in:
2022-09-19 20:58:08 -07:00
parent 179dc1253b
commit efcaacee6e
2 changed files with 4 additions and 11 deletions

View File

@ -238,9 +238,10 @@ internal abstract class MapLogic
if (!personKeyFormattedToPersonContainer.ContainsKey(newestPersonKeyFormatted))
personKeyFormattedToPersonContainer.Add(newestPersonKeyFormatted, personContainer);
}
foreach (KeyValuePair<long, List<PersonContainer>> keyValuePair in personKeyToPersonContainerCollection)
{
if (keyValuePair.Value.Count != 1)
if (keyValuePair.Value.Count != 1 && (from l in keyValuePair.Value select l.DisplayDirectoryName).Distinct().Count() != 1)
throw new NotImplementedException();
personKeyToPersonContainer.Add(keyValuePair.Key, keyValuePair.Value[zero]);
}