mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 06:52:56 +08:00
Use SingleOrDefault where feasible
This commit is contained in:
parent
981585930d
commit
d602072ee3
@ -20,7 +20,7 @@ namespace osu.Game.Tests.Visual.Editing
|
||||
{
|
||||
protected override Ruleset CreateEditorRuleset() => new OsuRuleset();
|
||||
|
||||
protected override bool EditorComponentsReady => Editor.ChildrenOfType<SetupScreen>().FirstOrDefault()?.IsLoaded == true;
|
||||
protected override bool EditorComponentsReady => Editor.ChildrenOfType<SetupScreen>().SingleOrDefault()?.IsLoaded == true;
|
||||
|
||||
public override void SetUpSteps()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user