these lints...

pull/28312/head
mertalev 2026-05-21 18:59:39 -04:00
parent 279d82a677
commit daa71bf882
No known key found for this signature in database
GPG Key ID: 0603AE056AA39037
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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) {