1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:07:23 +08:00

Fix weird usage of Cast

This commit is contained in:
Dean Herbert 2023-08-09 18:21:57 +09:00
parent 404a927caf
commit c88045dfc7

View File

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