mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 13:22:57 +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)
|
switch (legacy)
|
||||||
{
|
{
|
||||||
case LegacySkinConfigurations.Version:
|
case LegacySkinConfigurations.Version:
|
||||||
if (Configuration.LegacyVersion.HasValue)
|
if (Configuration.LegacyVersion != null)
|
||||||
return SkinUtils.As<TValue>(new Bindable<decimal>(Configuration.LegacyVersion.Value));
|
return SkinUtils.As<TValue>(new Bindable<decimal>((decimal)Configuration.LegacyVersion));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user