mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 03:22:55 +08:00
use plain if check in switch case
This commit is contained in:
parent
4cf3381d0b
commit
c099751ad1
@ -61,8 +61,11 @@ namespace osu.Game.Overlays.Wiki
|
||||
case LiteralInline literalInline:
|
||||
return literalInline.Content.ToString();
|
||||
|
||||
case LinkInline { IsImage: false } linkInline:
|
||||
return getTitle(linkInline);
|
||||
case LinkInline linkInline:
|
||||
if (!linkInline.IsImage)
|
||||
return getTitle(linkInline);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user