mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 16:03:01 +08:00
Invert if & early-return to reduce nesting
This commit is contained in:
parent
c35454081c
commit
40b9d1bc5e
@ -107,11 +107,11 @@ namespace osu.Game.Screens.Multi.RealtimeMultiplayer.Match
|
|||||||
|
|
||||||
private void playSound()
|
private void playSound()
|
||||||
{
|
{
|
||||||
if (sampleReadyCount != null)
|
if (sampleReadyCount == null)
|
||||||
{
|
return;
|
||||||
sampleReadyCount.Frequency.Value = 0.77f + countReady * 0.06f;
|
|
||||||
sampleReadyCount.Play();
|
sampleReadyCount.Frequency.Value = 0.77f + countReady * 0.06f;
|
||||||
}
|
sampleReadyCount.Play();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateButtonColour(bool green)
|
private void updateButtonColour(bool green)
|
||||||
|
Loading…
Reference in New Issue
Block a user