mirror of
https://github.com/immich-app/immich.git
synced 2026-05-21 23:26:31 -04:00
these lints...
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user