Skip to content

Commit e9d8fff

Browse files
committed
chore: reformat QUALITY_TIERS and getBestMatchingQualityTier for improved readability
1 parent c3b34e7 commit e9d8fff

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

  • apps/webapp/src/script/repositories/media/backgroundEffects/quality

apps/webapp/src/script/repositories/media/backgroundEffects/quality/definitions.ts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,12 @@ export const TIER_DEFINITIONS: Record<QualityTier, QualityTierParams> = {
6161
},
6262
};
6363

64-
const QUALITY_TIERS = [
65-
TIER_DEFINITIONS.fhd,
66-
TIER_DEFINITIONS.hd,
67-
TIER_DEFINITIONS.qhd,
68-
] as const;
64+
const QUALITY_TIERS = [TIER_DEFINITIONS.fhd, TIER_DEFINITIONS.hd, TIER_DEFINITIONS.qhd] as const;
6965

70-
export function getBestMatchingQualityTier(
71-
resolution: Resolution,
72-
): QualityTierParams {
66+
export function getBestMatchingQualityTier(resolution: Resolution): QualityTierParams {
7367
return (
74-
QUALITY_TIERS.find(({resolution: minResolution}) =>
75-
resolutionIsGreaterThanOrEqualTo(resolution, minResolution),
76-
) ?? TIER_DEFINITIONS.nhd
68+
QUALITY_TIERS.find(({resolution: minResolution}) => resolutionIsGreaterThanOrEqualTo(resolution, minResolution)) ??
69+
TIER_DEFINITIONS.nhd
7770
);
7871
}
7972

0 commit comments

Comments
 (0)