mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 14:13:18 +08:00
Use null check and pattern matching
This commit is contained in:
parent
ba14345107
commit
69d9a0ae1a
@ -77,8 +77,8 @@ namespace osu.Game.Skinning
|
||||
switch (legacy)
|
||||
{
|
||||
case LegacySkinConfigurations.Version:
|
||||
if (Configuration.LegacyVersion.HasValue)
|
||||
return SkinUtils.As<TValue>(new Bindable<decimal>(Configuration.LegacyVersion.Value));
|
||||
if (Configuration.LegacyVersion != null)
|
||||
return SkinUtils.As<TValue>(new Bindable<decimal>((decimal)Configuration.LegacyVersion));
|
||||
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user