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

Invert if & early-return to reduce nesting

This commit is contained in:
Bartłomiej Dach 2020-12-24 12:45:01 +01:00
parent c35454081c
commit 40b9d1bc5e

View File

@ -107,12 +107,12 @@ namespace osu.Game.Screens.Multi.RealtimeMultiplayer.Match
private void playSound()
{
if (sampleReadyCount != null)
{
if (sampleReadyCount == null)
return;
sampleReadyCount.Frequency.Value = 0.77f + countReady * 0.06f;
sampleReadyCount.Play();
}
}
private void updateButtonColour(bool green)
{