chore: lint

This commit is contained in:
Luan
2025-07-22 15:24:30 -03:00
parent 445c747a5d
commit f4805f6b36
4 changed files with 9 additions and 3 deletions

3
.gitignore vendored
View File

@@ -10,6 +10,9 @@ yarn-error.log*
lerna-debug.log* lerna-debug.log*
.pnpm-debug.log* .pnpm-debug.log*
# WebStorm
.idea/
# Coverage directory used by tools like istanbul # Coverage directory used by tools like istanbul
coverage coverage
*.lcov *.lcov

View File

@@ -103,7 +103,7 @@ export class SabrUmpProcessor {
}); });
} }
public getSegmentInfo() { public getSegmentInfo(): Segment | undefined {
return this.partialSegments.get(this.desiredHeaderId || 0); return this.partialSegments.get(this.desiredHeaderId || 0);
} }

View File

@@ -26,7 +26,10 @@ export class CacheManager {
this.startGarbageCollection(); this.startGarbageCollection();
} }
public getCacheEntries() { public getCacheEntries(): {
initSegmentCache: Map<string, CacheEntry>;
segmentCache: Map<string, CacheEntry>;
} {
return { return {
initSegmentCache: this.initSegmentCache, initSegmentCache: this.initSegmentCache,
segmentCache: this.segmentCache segmentCache: this.segmentCache

View File

@@ -82,7 +82,7 @@ export function createSegmentCacheKeyFromMetadata(
* @param format - The SabrFormat object. * @param format - The SabrFormat object.
* @returns A unique string identifier for the format. * @returns A unique string identifier for the format.
*/ */
export function getUniqueFormatId(format: SabrFormat) { export function getUniqueFormatId(format: SabrFormat): string {
if (format.width) if (format.width)
return format.itag.toString(); return format.itag.toString();