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

Remove use of case when

This commit is contained in:
Salman Ahmed 2020-07-30 07:09:40 +03:00
parent 5439099b7c
commit 6473bf503b

View File

@ -133,8 +133,14 @@ namespace osu.Game.Skinning
break; break;
case LegacySkinConfiguration.LegacySetting s when s == LegacySkinConfiguration.LegacySetting.Version: case LegacySkinConfiguration.LegacySetting legacy:
return SkinUtils.As<TValue>(new Bindable<decimal>(Configuration.LegacyVersion ?? LegacySkinConfiguration.LATEST_VERSION)); switch (legacy)
{
case LegacySkinConfiguration.LegacySetting.Version:
return SkinUtils.As<TValue>(new Bindable<decimal>(Configuration.LegacyVersion ?? LegacySkinConfiguration.LATEST_VERSION));
}
goto default;
default: default:
// handles lookups like some in LegacySkinConfiguration.LegacySetting // handles lookups like some in LegacySkinConfiguration.LegacySetting