Skip to content

Commit

Permalink
remove redundant startswith member in XmlComment (#10367)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Nov 7, 2024
1 parent 65f9bed commit fefd1db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Docfx.Dotnet/Parsers/XmlComment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ private XmlComment(string xml, XmlCommentParserContext context)
else
xml = $"<member><summary>{innerXml}</summary></member>";
}

// Workaround: https://github.com/dotnet/roslyn/pull/66668
if (!xml.StartsWith("<member", StringComparison.Ordinal) && !xml.EndsWith("</member>", StringComparison.Ordinal))
else if (!xml.StartsWith("<member", StringComparison.Ordinal) && !xml.EndsWith("</member>", StringComparison.Ordinal))
{
xml = $"<member>{xml}</member>";
}
Expand Down

0 comments on commit fefd1db

Please sign in to comment.