From add5146aea063fda49367c5d750709efe0c83d9e Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Fri, 20 Nov 2015 15:32:17 -0800 Subject: [PATCH] Fix linting errors --- src/compiler/checker.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 0a79b148da6..0954a7ce49e 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -6255,11 +6255,11 @@ namespace ts { } function typeIdenticalToSomeType(source: Type, target: UnionOrIntersectionType): boolean { - for (let t of target.types) { + for (const t of target.types) { if (isTypeIdenticalTo(source, t)) { return true; } - } + } return false; } @@ -6288,7 +6288,7 @@ namespace ts { } return source; } - + function getInferenceCandidates(context: InferenceContext, index: number): Type[] { const inferences = context.inferences[index]; return inferences.primary || inferences.secondary || emptyArray;