Skip to content

Commit 660cc12

Browse files
committed
chore(svg): apply prettier formatting
1 parent b49ecaa commit 660cc12

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

lib/svg/generator.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,9 @@ export function generateSVG(
812812

813813
const text = `#${sanitizeHexColor(params.text, 'ffffff')}`;
814814

815-
const borderAttr = params.border ? `stroke="#${sanitizeHexColor(params.border, '000000')}" stroke-width="2"` : '';
815+
const borderAttr = params.border
816+
? `stroke="#${sanitizeHexColor(params.border, '000000')}" stroke-width="2"`
817+
: '';
816818

817819
const sanitizedFont = sanitizeFont(params.font);
818820
const selectedFont = resolveFont(sanitizedFont);
@@ -1609,7 +1611,9 @@ export function generateHeatmapSVG(
16091611
const accent = `#${sanitizeHexColor(rawAccent, '00ffaa')}`;
16101612
const text = `#${sanitizeHexColor(params.text, 'ffffff')}`;
16111613

1612-
const borderAttr = params.border ? `stroke="#${sanitizeHexColor(params.border, '000000')}" stroke-width="2"` : '';
1614+
const borderAttr = params.border
1615+
? `stroke="#${sanitizeHexColor(params.border, '000000')}" stroke-width="2"`
1616+
: '';
16131617

16141618
const sanitizedFont = sanitizeFont(params.font);
16151619
const selectedFont = resolveFont(sanitizedFont);
@@ -3131,7 +3135,9 @@ export function generateLanguagesSVG(
31313135
const accent = `#${sanitizeHexColor(accentStr, '00ffaa')}`;
31323136

31333137
const text = `#${sanitizeHexColor(params.text, 'ffffff')}`;
3134-
const borderAttr = params.border ? `stroke="#${sanitizeHexColor(params.border, '000000')}" stroke-width="2"` : '';
3138+
const borderAttr = params.border
3139+
? `stroke="#${sanitizeHexColor(params.border, '000000')}" stroke-width="2"`
3140+
: '';
31353141

31363142
const sanitizedFont = sanitizeFont(params.font);
31373143
const selectedFont = resolveFont(sanitizedFont);

0 commit comments

Comments
 (0)