Skip to content

Commit

Permalink
Slightly reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
coldino committed Jun 10, 2022
1 parent 8a641af commit 6587150
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Common/SearchCriteria.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,15 @@ public List<Dino> Matches(Dictionary<string, List<Dino>> dinos, out int num_dino

List<Dino> result_list_of_dinos = new List<Dino>();
num_dinos_matching_species_criteria = 0;

foreach (var kvp in dinos)
{
string current_species = kvp.Key;
List<Dino> dinos_for_species = kvp.Value;
if (matches_species(current_species))
{
num_dinos_matching_species_criteria += dinos_for_species.Count;

result_list_of_dinos.AddRange(
dinos_for_species.Where(matches_level_and_sex)
);
result_list_of_dinos.AddRange(dinos_for_species.Where(matches_level_and_sex));
}
}

Expand Down

0 comments on commit 6587150

Please sign in to comment.