Skip to content

Commit

Permalink
fix negative index
Browse files Browse the repository at this point in the history
  • Loading branch information
rlauuzo authored and AbandonedCart committed May 17, 2024
1 parent e58e74b commit 4669a4f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public ChapterAnalyzer(ILogger<ChapterAnalyzer> logger)
});

// Check all chapters in reverse order, skipping the virtual chapter
for (int i = chapters.Count - 2; i >= 0; i--)
for (int i = chapters.Count - 2; i > 0; i--)
{
var current = chapters[i];
var previous = chapters[i - 1];
Expand Down

0 comments on commit 4669a4f

Please sign in to comment.