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