mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Simplify null values handling
This commit is contained in:
@ -12,16 +12,7 @@ namespace osu.Game.Overlays.Profile.Sections.Historical
|
||||
{
|
||||
public UserHistoryCount[] Values
|
||||
{
|
||||
set
|
||||
{
|
||||
if (value == null)
|
||||
{
|
||||
Data = null;
|
||||
return;
|
||||
}
|
||||
|
||||
Data = value.Select(v => new KeyValuePair<DateTime, long>(v.Date, v.Count)).ToArray();
|
||||
}
|
||||
set => Data = value?.Select(v => new KeyValuePair<DateTime, long>(v.Date, v.Count)).ToArray();
|
||||
}
|
||||
|
||||
protected override float GetDataPointHeight(long playCount) => playCount;
|
||||
|
Reference in New Issue
Block a user