mirror of
https://github.com/ppy/osu
synced 2025-01-11 00:29:30 +00:00
Use ??= operator instead of null check.
This commit is contained in:
parent
d8d4022119
commit
e44951969f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user