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:
parent
6f449a583e
commit
f1201454b7
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user