Skip to content

Commit

Permalink
Remove unnecessary null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Dec 6, 2024
1 parent 49f4b0e commit 6901455
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osu.Game/Graphics/UserInterface/OsuContextMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ protected override void AnimateOpen()
if (!playClickSample)
return;

menuSamples?.PlayClickSample();
menuSamples?.PlayOpenSample();
menuSamples.PlayClickSample();
menuSamples.PlayOpenSample();
}

protected override void AnimateClose()
{
this.FadeOut(fade_duration, Easing.OutQuint);

if (wasOpened)
menuSamples?.PlayCloseSample();
menuSamples.PlayCloseSample();

wasOpened = false;
}
Expand Down

0 comments on commit 6901455

Please sign in to comment.