Formatting changes

This commit is contained in:
Ajay
2025-04-23 21:05:49 -04:00
parent 3b89ef0487
commit 8117f3c215

View File

@@ -1589,14 +1589,14 @@ function getLatestEndTimeIndex(sponsorTimes: SponsorTime[], index: number, hideH
return index;
}
let latestEndTimeIndex;
let latestEndTimeIndex = -1;
// Default to looped chapter if its end would have been skipped
if (loopedChapter
&& (loopedChapter.segment[0] > sponsorTimes[index].segment[0]
&& loopedChapter.segment[0] <= sponsorTimes[index]?.segment[1])){
latestEndTimeIndex = sponsorTimes.length - 1;
} else {
// or the normal end time otherwise
// or the normal end time otherwise
latestEndTimeIndex = index;
}