these lints...

This commit is contained in:
mertalev
2026-05-21 18:59:39 -04:00
parent da4f22db73
commit eab71f579d
2 changed files with 4 additions and 1 deletions
@@ -146,7 +146,9 @@
Object.defineProperty(api, 'nextLevel', {
configurable: true,
get: () => api.currentLevel,
set: (level: number) => (api.currentLevel = level),
set: (level: number) => {
api.currentLevel = level;
},
});
// eslint-disable-next-line @typescript-eslint/no-misused-promises
@@ -36,6 +36,7 @@ class MediaCapabilitiesManager {
async efficientLevels(levels: Level[]) {
const decodingInfo = await Promise.all(levels.map((level) => this.decodingInfo(level)));
// eslint-disable-next-line svelte/prefer-svelte-reactivity
const lowestBitrateByHeight = new Map<number, number>();
for (let i = 0; i < levels.length; i++) {
if (!decodingInfo[i].powerEfficient) {