1
0
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:
Salman Ahmed 2021-05-08 18:44:28 +03:00
parent ca55287dd0
commit 655e8d3d86

View File

@ -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;