mirror of
https://github.com/ppy/osu
synced 2024-12-16 20:05:41 +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)
|
int[] ranks = Players.Select(p => p.Rank)
|
||||||
.Where(i => i.HasValue)
|
.Where(i => i.HasValue)
|
||||||
.Select(i => i.AsNonNull().Value)
|
.Cast<int>()
|
||||||
.ToArray();
|
.ToArray();
|
||||||
|
|
||||||
if (ranks.Length == 0)
|
if (ranks.Length == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user