.NET 8 code enhancements

This commit is contained in:
Archi
2023-12-11 23:55:13 +01:00
parent cc3a0a4144
commit 40ab1d848c
30 changed files with 333 additions and 327 deletions

View File

@@ -112,7 +112,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 = new(results.Where(static result => !string.IsNullOrEmpty(result))!);
List<string> responses = [..results.Where(static result => !string.IsNullOrEmpty(result))];
return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null;
}