Tweak Linq statement

This commit is contained in:
Matt Nadareski
2021-07-22 20:59:08 -07:00
parent e5ba670c04
commit 07359d2a63

View File

@@ -1049,9 +1049,9 @@ namespace MPF.Utilities
// Join the output protections for writing
string protections = string.Join(", ", found
.Where(kvp => kvp.Value != null && kvp.Value.Any())
.OrderBy(kvp => kvp.Value)
.SelectMany(kvp => kvp.Value)
.Distinct());
.Distinct()
.OrderBy(p => p));
return (true, protections);
}
catch (Exception ex)