Small refactoring to use .Trim() instead

This commit is contained in:
smoogipoo 2021-02-09 12:00:03 +09:00
parent 414e05affd
commit 3ce605b5e5
1 changed files with 2 additions and 3 deletions

View File

@ -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);