Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sndrs committed Jan 24, 2024
1 parent 22b388e commit 3ae3029
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libs/@guardian/source-foundations/src/utils/convert-value.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
export const rootPixelFontSize = 16;
export const pxToRem = (px: number): number => px / rootPixelFontSize;
export const pxStringToNumber = (px: string): number => Number(px.slice(0, -2));
export const fontArrayToString = (
fonts: readonly string[],
): string =>
export const fontArrayToString = (fonts: readonly string[]): string =>
fonts.map((name) => (name.includes(' ') ? `"${name}"` : name)).join(', ');

0 comments on commit 3ae3029

Please sign in to comment.