Apply suggestions from code review

Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
Dan Balasescu
2020-05-10 13:49:08 +09:00
committed by GitHub
parent be3b77cf25
commit 2f12c4126a
2 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@ namespace osu.Game.Rulesets.Mania.Tests
AddStep("grab hold note", () =>
{
holdNote = this.ChildrenOfType<DrawableHoldNote>().FirstOrDefault();
holdNote = this.ChildrenOfType<DrawableHoldNote>().Single();
InputManager.MoveMouseTo(holdNote);
InputManager.PressButton(MouseButton.Left);
});