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:
parent
5439099b7c
commit
6473bf503b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user