Skip to content

Commit

Permalink
use count
Browse files Browse the repository at this point in the history
  • Loading branch information
twsouthwick committed Nov 15, 2023
1 parent c79ade6 commit eb09e73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ static void GetSlideIdAndText(out string sldText, string docName, int index)
OpenXmlElementList slideIds = part?.Presentation?.SlideIdList?.ChildElements ?? default;

// If there are no slide IDs then there are no slides.
if (slideIds.Count() < 1)
if (slideIds.Count == 0)
{
sldText = "";
return;
Expand Down

0 comments on commit eb09e73

Please sign in to comment.