From f1643c7a8a22bec42c846c61ba961f06907d0e02 Mon Sep 17 00:00:00 2001 From: Evan Sebastian Date: Thu, 19 May 2016 06:00:35 +0700 Subject: [PATCH] Fix lint errors --- src/compiler/checker.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index c9b69ddd33e..f1d90c00bde 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -9525,10 +9525,11 @@ namespace ts { const childSignatures = getConstructOrCallSignature(childType); forEach(childSignatures, (signature) => { signatures.push(signature); - }) - }) + }); + }); return signatures; - } else { + } + else { const constructSignatures = getSignaturesOfType(type, SignatureKind.Construct); if (constructSignatures.length === 0) { // No construct signatures, try call signatures @@ -9537,17 +9538,19 @@ namespace ts { // We found no signatures at all, which is an error error(node.tagName, Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures, getTextOfNode(node.tagName)); return []; - } else { + } + else { return callSignatures; } - } else { + } + else { return constructSignatures; } } } // Resolve the signatures - let signatures = getConstructOrCallSignature(valueType); + const signatures = getConstructOrCallSignature(valueType); if (signatures.length === 0) { return unknownType; }