mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 09:03:50 +09:00
Use null check and pattern matching
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user