Skip to content

Commit 2281dcd

Browse files
committed
Better linq expression
1 parent 8a424e4 commit 2281dcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Html2OpenXml/Expressions/BodyExpression.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public override IEnumerable<OpenXmlElement> Interpret(ParsingContext context)
4545
if (shouldRegisterTopBookmark && elements.Any())
4646
{
4747
// Check whether it already exists
48-
if (body.Descendants<BookmarkStart>().Where(b => b.Name?.Value == "_top").Any())
48+
if (body.Descendants<BookmarkStart>().Any(b => b.Name?.Value == "_top"))
4949
{
5050
return elements;
5151
}

0 commit comments

Comments
 (0)