Skip to content

Commit 3bc2345

Browse files
committed
Fix linter errors
1 parent 1cc83f8 commit 3bc2345

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Elastic.Markdown/Myst/InlineParsers/HeadingBlockWithSlugParser.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@ public partial class HeadingBlockWithSlugParser : HeadingBlockParser
3434
private static readonly Regex IconSyntax = IconParser.IconRegex();
3535
private static readonly Regex AppliesToSyntax = AppliesToSyntaxRegex();
3636

37-
private static string StripAppliesToAnnotations(string text)
38-
{
37+
private static string StripAppliesToAnnotations(string text) =>
3938
// Remove applies_to inline annotations from the text
40-
return AppliesToSyntax.Replace(text, "").Trim();
41-
}
39+
AppliesToSyntax.Replace(text, "").Trim();
4240

4341
[GeneratedRegex(@"\{applies_to\}`[^`]*`", RegexOptions.Compiled)]
4442
private static partial Regex AppliesToSyntaxRegex();

0 commit comments

Comments
 (0)