Skip to content

Commit 27287c4

Browse files
committed
chore: remove unused condition
1 parent 00ae17e commit 27287c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/babel/src/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ export function isConditionalExpression(path: NodePath<Node> | null): boolean {
77
(path?.type === 'LogicalExpression' ||
88
path.type === 'ConditionalExpression') &&
99
(path.parent.type === 'JSXExpressionContainer' ||
10-
(path.parent.type === 'ConditionalExpression' &&
11-
isConditionalExpression(path.parentPath)))
10+
isConditionalExpression(path.parentPath))
1211
)
1312
}
1413

0 commit comments

Comments
 (0)