mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 03:25:11 +08:00
Remove pattern-matching on nullable with simple .HasValue
/.Value
This commit is contained in:
parent
ca55287dd0
commit
655e8d3d86
@ -180,8 +180,8 @@ namespace osu.Game.Screens.Play
|
||||
starDifficulty = difficultyCache.GetBindableDifficulty(beatmap.BeatmapInfo);
|
||||
starDifficulty.BindValueChanged(difficulty =>
|
||||
{
|
||||
if (difficulty.NewValue is StarDifficulty diff)
|
||||
starRatingDisplay.Current.Value = diff;
|
||||
if (difficulty.NewValue.HasValue)
|
||||
starRatingDisplay.Current.Value = difficulty.NewValue.Value;
|
||||
}, true);
|
||||
|
||||
Loading = true;
|
||||
|
Loading…
Reference in New Issue
Block a user