Address latest Rider code inspections

This commit is contained in:
Łukasz Domeradzki
2024-04-11 23:24:01 +02:00
parent e18e1533e3
commit 0ccec4c8c1
4 changed files with 49 additions and 44 deletions

View File

@@ -122,7 +122,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))!];
return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null;
}