From 6fcceb491bf7f13ab1e9cda61158dbb0f3f208fe Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Sat, 5 Dec 2015 17:09:51 -0800 Subject: [PATCH] Fix linting errors --- src/compiler/checker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index c4cda31a0ba..aac78ea9611 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -4152,7 +4152,7 @@ namespace ts { return true; } (checked || (checked = [])).push(type); - let constraintDeclaration = getConstraintDeclaration(type); + const constraintDeclaration = getConstraintDeclaration(type); type = constraintDeclaration && getTypeFromTypeNode(constraintDeclaration); } return false; @@ -4165,7 +4165,7 @@ namespace ts { type.constraint = targetConstraint ? instantiateType(targetConstraint, type.mapper) : noConstraintType; } else { - let constraintDeclaration = getConstraintDeclaration(type); + const constraintDeclaration = getConstraintDeclaration(type); let constraint = getTypeFromTypeNode(constraintDeclaration); if (hasConstraintReferenceTo(constraint, type)) { error(constraintDeclaration, Diagnostics.Type_parameter_0_has_a_circular_constraint, typeToString(type));