1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 18:42:56 +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;
case LegacySkinConfiguration.LegacySetting s when s == LegacySkinConfiguration.LegacySetting.Version:
return SkinUtils.As<TValue>(new Bindable<decimal>(Configuration.LegacyVersion ?? LegacySkinConfiguration.LATEST_VERSION));
case LegacySkinConfiguration.LegacySetting legacy:
switch (legacy)
{
case LegacySkinConfiguration.LegacySetting.Version:
return SkinUtils.As<TValue>(new Bindable<decimal>(Configuration.LegacyVersion ?? LegacySkinConfiguration.LATEST_VERSION));
}
goto default;
default:
// handles lookups like some in LegacySkinConfiguration.LegacySetting