mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Make data nullable
This commit is contained in:
@ -42,13 +42,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
|
||||
{
|
||||
int[] userRanks = statistics?.RankHistory?.Data;
|
||||
|
||||
if (userRanks == null)
|
||||
{
|
||||
Data = null;
|
||||
return;
|
||||
}
|
||||
|
||||
Data = userRanks.Select((x, index) => new KeyValuePair<int, int>(index, x)).Where(x => x.Value != 0).ToArray();
|
||||
Data = userRanks?.Select((x, index) => new KeyValuePair<int, int>(index, x)).Where(x => x.Value != 0).ToArray();
|
||||
}
|
||||
|
||||
protected override float GetDataPointHeight(int rank) => -MathF.Log(rank);
|
||||
|
Reference in New Issue
Block a user