Merge pull request #306 from mchangrh/remove-disable-eslint

no need for eslint-disable
This commit is contained in:
Ajay Ramachandran 2021-07-06 01:15:27 -04:00 committed by GitHub
commit e94d1d4bae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,6 @@ async function getSegmentsByVideoID(req: Request, videoID: VideoID, categories:
return acc;
}, {});
// eslint-disable-next-line @typescript-eslint/no-unused-vars
for (const [category, categorySegments] of Object.entries(segmentsByCategory)) {
segments.push(...(await prepareCategorySegments(req, videoID, category as Category, categorySegments, cache)));
}
@ -117,7 +116,6 @@ async function getSegmentsByHash(req: Request, hashedVideoIDPrefix: VideoIDHash,
segments: [],
};
// eslint-disable-next-line @typescript-eslint/no-unused-vars
for (const [category, segmentPerCategory] of Object.entries(videoData.segmentPerCategory)) {
segments[videoID].segments.push(...(await prepareCategorySegments(req, videoID as VideoID, category as Category, segmentPerCategory, cache)));
}