1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

simplify SettingDescription default definition

This commit is contained in:
Liam DeVoe 2020-03-22 22:07:09 -04:00
parent ea87afd577
commit 98b8f82810

View File

@ -1,4 +1,4 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
@ -86,10 +86,8 @@ namespace osu.Game.Rulesets.Mods
tooltipTexts.Add(tooltipText);
}
// filter out empty strings so we don't have orphaned commas
//tooltipTexts = tooltipTexts.Where(s => !string.IsNullOrEmpty(s)).ToList();
string joinedTooltipText = string.Join(", ", tooltipTexts);
return $"{Name}{joinedTooltipText}";
string joinedTooltipText = string.Join(", ", tooltipTexts.Where(s => !string.IsNullOrEmpty(s)));
return $"{joinedTooltipText}";
}
}