From ef05176ac532788a625167c8f30b3e02745aaf55 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 6 Mar 2024 10:49:45 +0000 Subject: [PATCH] style: sort inline --- src/providers/google.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/providers/google.ts b/src/providers/google.ts index 0a743411..c71cdf7c 100644 --- a/src/providers/google.ts +++ b/src/providers/google.ts @@ -76,8 +76,7 @@ async function getFontDetails (family: string, variants: ResolveFontFacesOptions const weights = variableWeight ? [`${variableWeight.min}..${variableWeight.max}`] : variants.weights.filter(weight => String(weight) in font.fonts) - const resolvedVariants = weights.flatMap(w => [...styles].map(s => `${s},${w}`)) - resolvedVariants.sort() + const resolvedVariants = weights.flatMap(w => [...styles].map(s => `${s},${w}`)).sort() let css = '' for (const extension in userAgents) {