1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:07:52 +08:00

Use value tuples

This commit is contained in:
Andrei Zavatski 2022-11-19 23:29:50 +03:00
parent 6f449a583e
commit f1201454b7

View File

@ -64,7 +64,7 @@ namespace osu.Game.Graphics.UserInterface
float maxLength = MaxValue ?? value.Max();
foreach (var bar in value.Select((length, index) => new { Value = length, Index = index }))
foreach (var bar in value.Select((length, index) => (Value: length, Index: index)))
{
float length = maxLength == 0 ? 0 : Math.Max(0f, bar.Value / maxLength);