Skip to content

Commit d4c1cbe

Browse files
committed
Refactor for readability
1 parent 5ca1c27 commit d4c1cbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Elastic.Markdown/Myst/Renderers/LlmMarkdown/LlmBlockRenderers.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ protected override void Write(LlmMarkdownRenderer renderer, HeadingBlock obj)
8383
renderer.WriteLine();
8484
renderer.Write(new string('#', obj.Level));
8585
renderer.Write(" ");
86-
if (obj.Inline is { } inline)
87-
renderer.WriteChildren(inline);
86+
if (obj.Inline is not null)
87+
renderer.WriteChildren(obj.Inline);
8888
}
8989
}
9090

0 commit comments

Comments
 (0)