Apply selected .NET 10 improvements

This commit is contained in:
Łukasz Domeradzki
2025-09-19 23:19:24 +02:00
parent 95eb6b2c63
commit 1b245a568f
3 changed files with 50 additions and 50 deletions

View File

@@ -121,7 +121,7 @@ internal static class Commands {
IList<string?> results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => ResponseMatch(Steam.Interaction.Commands.GetProxyAccess(bot, access, steamID), bot)))).ConfigureAwait(false);
List<string> responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!];
List<string> responses = [..results.Where(static result => !string.IsNullOrEmpty(result)).Select(static result => result!)];
return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null;
}