Use '?:' expression instead

This commit is contained in:
Joehu 2018-06-01 15:58:05 -07:00
parent 5d1421c0e9
commit 8d3de3affb
1 changed files with 1 additions and 8 deletions

View File

@ -130,14 +130,7 @@ protected PlayerSettingsGroup()
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
if (expanded)
{
button.Colour = colours.Yellow;
}
else
{
button.Colour = Color4.White;
}
button.FadeColour(expanded ? colours.Yellow : Color4.White);
expandedColour = colours.Yellow;
}