mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 23:43:03 +08:00
Remove unnecessary local variable
This commit is contained in:
parent
2ae5a95d77
commit
ae609b9d48
@ -27,12 +27,10 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
private void updateColour()
|
private void updateColour()
|
||||||
{
|
{
|
||||||
Color4 defaultColour = Color4.White;
|
|
||||||
|
|
||||||
if (user.Value?.IsSupporter ?? false)
|
if (user.Value?.IsSupporter ?? false)
|
||||||
Colour = skin.Value.GetConfig<GlobalSkinColours, Color4>(GlobalSkinColours.MenuGlow)?.Value ?? defaultColour;
|
Colour = skin.Value.GetConfig<GlobalSkinColours, Color4>(GlobalSkinColours.MenuGlow)?.Value ?? Color4.White;
|
||||||
else
|
else
|
||||||
Colour = defaultColour;
|
Colour = Color4.White;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user