We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a424e4 commit 2281dcdCopy full SHA for 2281dcd
src/Html2OpenXml/Expressions/BodyExpression.cs
@@ -45,7 +45,7 @@ public override IEnumerable<OpenXmlElement> Interpret(ParsingContext context)
45
if (shouldRegisterTopBookmark && elements.Any())
46
{
47
// Check whether it already exists
48
- if (body.Descendants<BookmarkStart>().Where(b => b.Name?.Value == "_top").Any())
+ if (body.Descendants<BookmarkStart>().Any(b => b.Name?.Value == "_top"))
49
50
return elements;
51
}
0 commit comments