Skip to content

Commit 0e7e3b1

Browse files
author
andy-ms
committed
Make line shorter
1 parent 48a10ab commit 0e7e3b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6572,7 +6572,8 @@ namespace ts {
65726572
function isJSDocOptionalParameter(node: ParameterDeclaration) {
65736573
return isInJavaScriptFile(node) && (
65746574
node.type && node.type.kind === SyntaxKind.JSDocOptionalType
6575-
|| some(getJSDocParameterTags(node), paramTag => paramTag.isBracketed || !!paramTag.typeExpression && paramTag.typeExpression.type.kind === SyntaxKind.JSDocOptionalType));
6575+
|| getJSDocParameterTags(node).some(({ isBracketed, typeExpression }) =>
6576+
isBracketed || !!typeExpression && typeExpression.type.kind === SyntaxKind.JSDocOptionalType));
65766577
}
65776578

65786579
function tryFindAmbientModule(moduleName: string, withAugmentations: boolean) {

0 commit comments

Comments
 (0)