Skip to content

Commit 6c9e85c

Browse files
committed
Fix lints
1 parent 81adb5d commit 6c9e85c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/compiler/checker.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ namespace ts {
299299
let instantiationCount = 0;
300300
let instantiationDepth = 0;
301301
let constraintDepth = 0;
302+
let mapperIdCount = 0;
302303
let currentNode: Node | undefined;
303304

304305
const emptySymbols = createSymbolTable();
@@ -6545,7 +6546,7 @@ namespace ts {
65456546
if (type.flags & TypeFlags.Substitution) {
65466547
// Trigger resolution of any deferred substiutes that are directly assigned to the alias so they
65476548
// are marked as circular and the alias becomes `any`
6548-
void (type as SubstitutionType).substitute;
6549+
void (type as SubstitutionType).substitute; // tslint:disable-line:no-unused-expression
65496550
}
65506551

65516552
if (popTypeResolution()) {
@@ -9166,7 +9167,7 @@ namespace ts {
91669167
const links = getNodeLinks(node);
91679168
let cb = links.substituteCallback;
91689169
if (!cb) {
9169-
cb = links.substituteCallback = () => getTypeFromTypeAliasReferenceWorker(node, symbol, typeArguments);
9170+
cb = links.substituteCallback = () => getTypeFromTypeAliasReferenceWorker(node, symbol, typeArguments);
91709171
}
91719172
return getDeferredSubstitutionType(cb, symbol, typeArguments);
91729173
}
@@ -11699,9 +11700,8 @@ namespace ts {
1169911700
return result;
1170011701
}
1170111702

11702-
var mapperIdCount: number;
1170311703
function getTypeMapperId(mapper: TypeMapper) {
11704-
return mapper.id || (mapper.id = (mapperIdCount = (mapperIdCount || 0) + 1));
11704+
return mapper.id || (mapper.id = ++mapperIdCount);
1170511705
}
1170611706

1170711707
function instantiateTypeWorker(type: Type, mapper: TypeMapper): Type {

0 commit comments

Comments
 (0)