mirror of https://github.com/ppy/osu
Small refactoring to use .Trim() instead
This commit is contained in:
parent
414e05affd
commit
3ce605b5e5
|
@ -151,11 +151,10 @@ private Drawable createAttribute(ControlPoint controlPoint)
|
|||
return new RowAttribute("difficulty", () => $"{difficulty.SpeedMultiplier:n2}x", colour);
|
||||
|
||||
case EffectControlPoint effect:
|
||||
return new RowAttribute("effect", () => string.Join(" ", new[]
|
||||
{
|
||||
return new RowAttribute("effect", () => string.Join(" ",
|
||||
effect.KiaiMode ? "Kiai" : string.Empty,
|
||||
effect.OmitFirstBarLine ? "NoBarLine" : string.Empty
|
||||
}.Where(s => !string.IsNullOrEmpty(s))), colour);
|
||||
).Trim(), colour);
|
||||
|
||||
case SampleControlPoint sample:
|
||||
return new RowAttribute("sample", () => $"{sample.SampleBank} {sample.SampleVolume}%", colour);
|
||||
|
|
Loading…
Reference in New Issue