From 6a5de5d00ee092322a1cb6d68809c37366090ee4 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Thu, 3 Nov 2016 10:55:58 -0700 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 b47f6264e3e..28b14502af9 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -6828,7 +6828,7 @@ namespace ts { if (target.flags & TypeFlags.TypeParameter) { // Given a type parameter K with a constraint keyof T, a type S is // assignable to K if S is assignable to keyof T. - let constraint = getConstraintOfTypeParameter(target); + const constraint = getConstraintOfTypeParameter(target); if (constraint && constraint.flags & TypeFlags.Index) { if (result = isRelatedTo(source, constraint, reportErrors)) { return result; @@ -6838,7 +6838,7 @@ namespace ts { else if (target.flags & TypeFlags.Index) { // Given a type parameter T with a constraint C, a type S is assignable to // keyof T if S is assignable to keyof C. - let constraint = getConstraintOfTypeParameter((target).type); + const constraint = getConstraintOfTypeParameter((target).type); if (constraint) { if (result = isRelatedTo(source, getIndexType(constraint), reportErrors)) { return result;