Skip to content

Commit

Permalink
style: sort inline
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Mar 6, 2024
1 parent b133a91 commit ef05176
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/providers/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ef05176

Please sign in to comment.