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");
if (Activity.Value == null)
Activity.Value = InitialActivity;
Activity.Value ??= InitialActivity;
}
public override void OnResuming(IScreen last)