1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 20:07:25 +08:00

remove unnecessary ToString calls

This commit is contained in:
Liam DeVoe 2020-03-20 16:53:40 -04:00
parent 55568ee6a5
commit e84b40f8ed
2 changed files with 8 additions and 8 deletions

View File

@ -35,10 +35,10 @@ namespace osu.Game.Rulesets.Catch.Mods
{
get
{
string circleSize = CircleSize.IsDefault ? "" : $"CS {CircleSize.Value.ToString()}";
string drainRate = DrainRate.IsDefault ? "" : $"HP {DrainRate.Value.ToString()}";
string overallDifficulty = OverallDifficulty.IsDefault ? "" : $"OD {OverallDifficulty.Value.ToString()}";
string approachRate = ApproachRate.IsDefault ? "" : $"AR {ApproachRate.Value.ToString()}";
string circleSize = CircleSize.IsDefault ? "" : $"CS {CircleSize.Value}";
string drainRate = DrainRate.IsDefault ? "" : $"HP {DrainRate.Value}";
string overallDifficulty = OverallDifficulty.IsDefault ? "" : $"OD {OverallDifficulty.Value}";
string approachRate = ApproachRate.IsDefault ? "" : $"AR {ApproachRate.Value}";
string[] settings = new string[] { circleSize, drainRate, overallDifficulty, approachRate };
// filter out empty strings so we don't have orphaned commas

View File

@ -35,10 +35,10 @@ namespace osu.Game.Rulesets.Osu.Mods
{
get
{
string circleSize = CircleSize.IsDefault ? "" : $"CS {CircleSize.Value.ToString()}";
string drainRate = DrainRate.IsDefault ? "" : $"HP {DrainRate.Value.ToString()}";
string overallDifficulty = OverallDifficulty.IsDefault ? "" : $"OD {OverallDifficulty.Value.ToString()}";
string approachRate = ApproachRate.IsDefault ? "" : $"AR {ApproachRate.Value.ToString()}";
string circleSize = CircleSize.IsDefault ? "" : $"CS {CircleSize.Value}";
string drainRate = DrainRate.IsDefault ? "" : $"HP {DrainRate.Value}";
string overallDifficulty = OverallDifficulty.IsDefault ? "" : $"OD {OverallDifficulty.Value}";
string approachRate = ApproachRate.IsDefault ? "" : $"AR {ApproachRate.Value}";
string[] settings = new string[] { circleSize, drainRate, overallDifficulty, approachRate };
// filter out empty strings so we don't have orphaned commas