Skip to content

Commit

Permalink
Remove unnecessary null check (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
josefpihrt committed Aug 17, 2023
1 parent 77ebe8c commit d8c919f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/DotMarkdown.Docusaurus/DocusaurusExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ public static string ToString(this MElement element, MarkdownWriterSettings? set
if (writer.WriteState != WriteState.Start)
throw new InvalidOperationException("Docusaurus front matter can be written only at the beginning of the document.");

if (labels is null)
return;

var pendingStart = true;
foreach ((string key, object value) in labels)
{
Expand Down

0 comments on commit d8c919f

Please sign in to comment.