Skip to content

Commit 51d83ef

Browse files
Remove useless typecast
1 parent 65a1815 commit 51d83ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/variant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function variantFactory(context: Context) {
6060
const nameOfCase = (
6161
typeof nameOfCaseRaw === 'string'
6262
? nameOfCaseRaw
63-
: booleanToVariant(nameOfCaseRaw as boolean)
63+
: booleanToVariant(nameOfCaseRaw)
6464
) as Variant;
6565
const Component = cases[nameOfCase] ?? def;
6666

0 commit comments

Comments
 (0)