Skip to content

Commit 8da353e

Browse files
committed
Add spaces between if and (
1 parent 430c2c8 commit 8da353e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/compiler/checker.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7086,7 +7086,7 @@ namespace ts {
70867086

70877087
let jsxElementClassType: Type = undefined;
70887088
function getJsxGlobalElementClassType(): Type {
7089-
if(!jsxElementClassType) {
7089+
if (!jsxElementClassType) {
70907090
jsxElementClassType = getExportedTypeFromNamespace(JsxNames.JSX, JsxNames.ElementClass);
70917091
}
70927092
return jsxElementClassType;
@@ -7105,7 +7105,7 @@ namespace ts {
71057105
}
71067106

71077107
if (jsxElementType === undefined) {
7108-
if(compilerOptions.noImplicitAny) {
7108+
if (compilerOptions.noImplicitAny) {
71097109
error(errorNode, Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist);
71107110
}
71117111
}
@@ -7117,8 +7117,8 @@ namespace ts {
71177117

71187118
let targetAttributesType = getJsxElementAttributesType(node);
71197119

7120-
if(getNodeLinks(node).jsxFlags & JsxFlags.ClassElement) {
7121-
if(node.tagName.kind === SyntaxKind.Identifier) {
7120+
if (getNodeLinks(node).jsxFlags & JsxFlags.ClassElement) {
7121+
if (node.tagName.kind === SyntaxKind.Identifier) {
71227122
checkIdentifier(<Identifier>node.tagName);
71237123
}
71247124
else {
@@ -7138,7 +7138,7 @@ namespace ts {
71387138
else {
71397139
Debug.assert(node.attributes[i].kind === SyntaxKind.JsxSpreadAttribute);
71407140
let spreadType = checkJsxSpreadAttribute(<JsxSpreadAttribute>(node.attributes[i]), targetAttributesType, nameTable);
7141-
if(isTypeAny(spreadType)) {
7141+
if (isTypeAny(spreadType)) {
71427142
sawSpreadedAny = true;
71437143
}
71447144
}
@@ -12343,7 +12343,7 @@ namespace ts {
1234312343
}
1234412344

1234512345
function checkTypePredicate(node: TypePredicateNode) {
12346-
if(!isInLegalTypePredicatePosition(node)) {
12346+
if (!isInLegalTypePredicatePosition(node)) {
1234712347
error(node, Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);
1234812348
}
1234912349
}

0 commit comments

Comments
 (0)