Fix linting errors

This commit is contained in:
Anders Hejlsberg 2015-11-20 15:32:17 -08:00
parent 11f4e3c330
commit add5146aea

View file

@ -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;