Skip to content

Commit cab05dd

Browse files
committed
Inline variable to aid control flow
1 parent 7d5b5e9 commit cab05dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/compiler/parser.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6699,8 +6699,9 @@ namespace ts {
66996699
if (typeExpression && typeExpression.type.kind === SyntaxKind.ArrayType) {
67006700
jsdocTypeLiteral.isArrayType = true;
67016701
}
6702-
const useChildTypeTagAsType = childTypeTag && !isObjectOrObjectArrayTypeReference(childTypeTag.typeExpression.type);
6703-
typedefTag.typeExpression = useChildTypeTagAsType ? childTypeTag.typeExpression : finishNode(jsdocTypeLiteral);
6702+
typedefTag.typeExpression = childTypeTag && !isObjectOrObjectArrayTypeReference(childTypeTag.typeExpression.type) ?
6703+
childTypeTag.typeExpression :
6704+
finishNode(jsdocTypeLiteral);
67046705
}
67056706
}
67066707

0 commit comments

Comments
 (0)