1
0
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:
Gagah Pangeran Rosfatiputra 2021-06-05 18:26:03 +07:00
parent 4cf3381d0b
commit c099751ad1
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -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;
}
}