Fixed some of the compiler warnings.

This commit is contained in:
Tom
2024-12-28 21:19:28 +00:00
parent db1d57c218
commit 4f5dd8f24e
20 changed files with 93 additions and 131 deletions

View File

@@ -73,7 +73,7 @@ namespace TwitchChatTTS.Chat.Groups
{
var values = groupNames.Select(g => _groups.TryGetValue(g, out var group) ? group : null).Where(g => g != null);
if (values.Any())
return values.Max(g => g.Priority);
return values.Max(g => g!.Priority);
return 0;
}