diff --git a/osu.Desktop.Tests/Visual/TestCaseScrollingPlayfield.cs b/osu.Desktop.Tests/Visual/TestCaseScrollingPlayfield.cs index 1dd55974e8..79a9fab91c 100644 --- a/osu.Desktop.Tests/Visual/TestCaseScrollingPlayfield.cs +++ b/osu.Desktop.Tests/Visual/TestCaseScrollingPlayfield.cs @@ -106,11 +106,7 @@ namespace osu.Desktop.Tests.Visual public DrawableTestHitObject(Axes scrollingAxes, TestHitObject hitObject) : base(hitObject) { - if (scrollingAxes == Axes.Y) - Anchor = Anchor.TopCentre; - else - Anchor = Anchor.CentreLeft; - + Anchor = scrollingAxes == Axes.Y ? Anchor.TopCentre : Anchor.CentreLeft; Origin = Anchor.Centre; AutoSizeAxes = Axes.Both;