Skip to content

Commit 655b579

Browse files
committed
fix: remove condition
1 parent 00b00a7 commit 655b579

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

generator/generate-svg.mjs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,7 @@ const generateIconWithWeight = (icon, weight) => {
6767
}).then((tsCode) => {
6868
tsCode = tsCode
6969
.replace(/import type .*;\n/g, '')
70-
.replace(
71-
'const',
72-
weight === 'duotone'
73-
? "import type { IconProps } from '../lib'\n\nconst"
74-
: "import type { IconProps } from '../lib'\n\nconst"
75-
)
70+
.replace('const', "import type { IconProps } from '../lib'\n\nconst")
7671
.replace(
7772
'SvgProps',
7873
weight === 'duotone'

0 commit comments

Comments
 (0)