clarify comment

This commit is contained in:
Ajay 2022-12-11 14:25:34 -05:00
parent f59665cccb
commit a5d91c9b57

View file

@ -930,7 +930,7 @@ class PreviewBar {
return this.videoDuration * (showLarger ? 0.006 : 0.003); return this.videoDuration * (showLarger ? 0.006 : 0.003);
} }
// Name used for cache // Name parameter used for cache
private getSmallestSegment(timeInSeconds: number, segments: PreviewBarSegment[], name?: string): PreviewBarSegment | null { private getSmallestSegment(timeInSeconds: number, segments: PreviewBarSegment[], name?: string): PreviewBarSegment | null {
const proposedIndex = name ? this.lastSmallestSegment[name]?.index : null; const proposedIndex = name ? this.lastSmallestSegment[name]?.index : null;
const startSearchIndex = proposedIndex && segments[proposedIndex] === this.lastSmallestSegment[name].segment ? proposedIndex : 0; const startSearchIndex = proposedIndex && segments[proposedIndex] === this.lastSmallestSegment[name].segment ? proposedIndex : 0;