Skip to content

Commit 9ce87a0

Browse files
Remove extra parens.
1 parent 185b41e commit 9ce87a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8703,7 +8703,7 @@ namespace ts {
87038703

87048704
const isProperty = isPropertyDeclaration(declaration) || isPropertySignature(declaration);
87058705
const isOptional = includeOptionality && (
8706-
isProperty && !!(declaration).questionToken ||
8706+
isProperty && !!declaration.questionToken ||
87078707
isParameter(declaration) && (!!declaration.questionToken || isJSDocOptionalParameter(declaration)) ||
87088708
isOptionalJSDocPropertyLikeTag(declaration));
87098709

@@ -27895,7 +27895,7 @@ namespace ts {
2789527895
// And if there is no reactNamespace/jsxFactory's symbol in scope when targeting React emit, we should issue an error.
2789627896
const jsxFactoryRefErr = diagnostics && compilerOptions.jsx === JsxEmit.React ? Diagnostics.Cannot_find_name_0 : undefined;
2789727897
const jsxFactoryNamespace = getJsxNamespace(node);
27898-
const jsxFactoryLocation = isNodeOpeningLikeElement ? (node).tagName : node;
27898+
const jsxFactoryLocation = isNodeOpeningLikeElement ? node.tagName : node;
2789927899

2790027900
// allow null as jsxFragmentFactory
2790127901
let jsxFactorySym: Symbol | undefined;

src/compiler/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2219,7 +2219,7 @@ namespace ts {
22192219
const e = isBinaryExpression(initializer)
22202220
&& (initializer.operatorToken.kind === SyntaxKind.BarBarToken || initializer.operatorToken.kind === SyntaxKind.QuestionQuestionToken)
22212221
&& getExpandoInitializer(initializer.right, isPrototypeAssignment);
2222-
if (e && isSameEntityName(name, (initializer).left)) {
2222+
if (e && isSameEntityName(name, initializer.left)) {
22232223
return e;
22242224
}
22252225
}

0 commit comments

Comments
 (0)