1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 21:03:21 +08:00

Use ??= operator instead of null check.

This commit is contained in:
Lucas A 2020-11-08 18:22:19 +01:00
parent d8d4022119
commit e44951969f

View File

@ -138,8 +138,7 @@ namespace osu.Game.Screens
{ {
sampleExit = audio.Samples.Get(@"UI/screen-back"); sampleExit = audio.Samples.Get(@"UI/screen-back");
if (Activity.Value == null) Activity.Value ??= InitialActivity;
Activity.Value = InitialActivity;
} }
public override void OnResuming(IScreen last) public override void OnResuming(IScreen last)