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:
container.Add(CreateNotice(yamlFrontMatterBlock));
break;
default:
base.AddMarkdownComponent(markdownObject, container, level);
break;
return;
}
base.AddMarkdownComponent(markdownObject, container, level);
}
public override MarkdownTextFlowContainer CreateTextFlow() => new WikiMarkdownTextFlowContainer();