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