Skip to content

Commit f4805f6

Browse files
committed
chore: lint
1 parent 445c747 commit f4805f6

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ yarn-error.log*
1010
lerna-debug.log*
1111
.pnpm-debug.log*
1212

13+
# WebStorm
14+
.idea/
15+
1316
# Coverage directory used by tools like istanbul
1417
coverage
1518
*.lcov

src/core/SabrUmpProcessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class SabrUmpProcessor {
103103
});
104104
}
105105

106-
public getSegmentInfo() {
106+
public getSegmentInfo(): Segment | undefined {
107107
return this.partialSegments.get(this.desiredHeaderId || 0);
108108
}
109109

src/utils/CacheManager.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ export class CacheManager {
2626
this.startGarbageCollection();
2727
}
2828

29-
public getCacheEntries() {
29+
public getCacheEntries(): {
30+
initSegmentCache: Map<string, CacheEntry>;
31+
segmentCache: Map<string, CacheEntry>;
32+
} {
3033
return {
3134
initSegmentCache: this.initSegmentCache,
3235
segmentCache: this.segmentCache

src/utils/formatKeyUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export function createSegmentCacheKeyFromMetadata(
8282
* @param format - The SabrFormat object.
8383
* @returns A unique string identifier for the format.
8484
*/
85-
export function getUniqueFormatId(format: SabrFormat) {
85+
export function getUniqueFormatId(format: SabrFormat): string {
8686
if (format.width)
8787
return format.itag.toString();
8888

0 commit comments

Comments
 (0)