mirror of
https://github.com/ppy/osu
synced 2024-12-16 11:56:31 +00:00
use cast instead AsNonNull
This commit is contained in:
parent
4c33013674
commit
033c9091c0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user