use cast instead AsNonNull

This commit is contained in:
cdwcgt 2023-07-30 01:39:31 +09:00
parent 4c33013674
commit 033c9091c0
No known key found for this signature in database
GPG Key ID: 144396D01095C3A2

View File

@ -38,7 +38,7 @@ namespace osu.Game.Tournament.Models
{
int[] ranks = Players.Select(p => p.Rank)
.Where(i => i.HasValue)
.Select(i => i.AsNonNull().Value)
.Cast<int>()
.ToArray();
if (ranks.Length == 0)