1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 17:47:29 +08:00

Split out base call from switch statement

This commit is contained in:
Dean Herbert 2021-05-26 14:43:59 +09:00
parent 9de07de467
commit e4780abdfd

View File

@ -23,12 +23,10 @@ namespace osu.Game.Overlays.Wiki.Markdown
{ {
case YamlFrontMatterBlock yamlFrontMatterBlock: case YamlFrontMatterBlock yamlFrontMatterBlock:
container.Add(CreateNotice(yamlFrontMatterBlock)); container.Add(CreateNotice(yamlFrontMatterBlock));
break; return;
default:
base.AddMarkdownComponent(markdownObject, container, level);
break;
} }
base.AddMarkdownComponent(markdownObject, container, level);
} }
public override MarkdownTextFlowContainer CreateTextFlow() => new WikiMarkdownTextFlowContainer(); public override MarkdownTextFlowContainer CreateTextFlow() => new WikiMarkdownTextFlowContainer();