1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 17:23:22 +08:00

Use lambda expression

Apparently CI dislikes this not being a lambda.
This commit is contained in:
Naxess 2021-04-08 12:49:46 +02:00
parent 9a675a2219
commit 2d94484566

View File

@ -152,10 +152,7 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
private void assertControlPointPathType(int controlPointIndex, PathType? type) private void assertControlPointPathType(int controlPointIndex, PathType? type)
{ {
AddAssert($"point {controlPointIndex} is {type}", () => AddAssert($"point {controlPointIndex} is {type}", () => slider.Path.ControlPoints[controlPointIndex].Type.Value == type);
{
return slider.Path.ControlPoints[controlPointIndex].Type.Value == type;
});
} }
private void addContextMenuItemStep(string contextMenuText) private void addContextMenuItemStep(string contextMenuText)