mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 18:13:09 +08:00
Use nameof
This commit is contained in:
parent
d1c72f5e13
commit
8c4804dd7a
@ -173,7 +173,7 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!(target is IParseable parseable))
|
if (!(target is IParseable parseable))
|
||||||
throw new InvalidOperationException($"Bindable type {target.GetType().ReadableName()} is not IParseable.");
|
throw new InvalidOperationException($"Bindable type {target.GetType().ReadableName()} is not {nameof(IParseable)}.");
|
||||||
|
|
||||||
parseable.Parse(source);
|
parseable.Parse(source);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user