1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 16:52:55 +08:00

Remove redundant conditional ternary expression

This commit is contained in:
Andrei Zavatski 2019-08-12 16:41:35 +03:00
parent cf92d6b1b0
commit 1bfb87fcdd

View File

@ -28,8 +28,7 @@ namespace osu.Game.Overlays.BeatmapSet
public LeaderboardModSelector()
{
AutoSizeAxes = Axes.Y;
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Both;
InternalChild = modsContainer = new FillFlowContainer<ModButton>
{
Anchor = Anchor.Centre,
@ -151,10 +150,7 @@ namespace osu.Game.Overlays.BeatmapSet
updateState();
}
private void updateState()
{
Highlighted.Value = (IsHovered || Selected.Value) ? true : false;
}
private void updateState() => Highlighted.Value = IsHovered || Selected.Value;
protected override void OnHighlightedChange(ValueChangedEvent<bool> highlighted)
{